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)
+
+
+/***/ }),
+/* 570 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 571 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1beta1_1 = __webpack_require__(695);
+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
+
+/***/ }),
+/* 572 */,
+/* 573 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1configuration_1 = __webpack_require__(505);
+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
+
+/***/ }),
+/* 574 */,
+/* 575 */,
+/* 576 */,
+/* 577 */
+/***/ (function(module) {
+
+module.exports = getPageLinks
+
+function getPageLinks (link) {
+ link = link.link || link.headers.link || ''
+
+ const links = {}
+
+ // link format:
+ // '; rel="next", ; rel="last"'
+ link.replace(/<([^>]*)>;\s*rel="([\w]*)"/g, (m, uri, type) => {
+ links[type] = uri
+ })
+
+ return links
+}
+
+
+/***/ }),
+/* 578 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(974);
+const v1beta1_1 = __webpack_require__(331);
+const v1beta2_1 = __webpack_require__(156);
+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
+
+/***/ }),
+/* 579 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 580 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1management_1 = __webpack_require__(226);
+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
+
+/***/ }),
+/* 581 */,
+/* 582 */,
+/* 583 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 584 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v2_1 = __webpack_require__(787);
+const v3_1 = __webpack_require__(994);
+const v3p1beta1_1 = __webpack_require__(30);
+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
+
+/***/ }),
+/* 585 */,
+/* 586 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 587 */,
+/* 588 */,
+/* 589 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 590 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v3_1 = __webpack_require__(354);
+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
+
+/***/ }),
+/* 591 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(838);
+const v1p1beta1_1 = __webpack_require__(806);
+const v2beta1_1 = __webpack_require__(45);
+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
+
+/***/ }),
+/* 592 */,
+/* 593 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+"use strict";
+
+
+// A linked list to keep track of recently-used-ness
+const Yallist = __webpack_require__(363)
+
+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
+
+
+/***/ }),
+/* 594 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(672);
+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
+
+/***/ }),
+/* 595 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(32);
+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
+
+/***/ }),
+/* 596 */,
+/* 597 */
+/***/ (function(__unusedmodule, exports, __webpack_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 = __webpack_require__(830);
+exports.Gaxios = gaxios_1.Gaxios;
+var common_1 = __webpack_require__(259);
+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
+
+/***/ }),
+/* 598 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 599 */
+/***/ (function(module, __unusedexports, __webpack_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 = __webpack_require__(985);
+__webpack_require__(220);
+__webpack_require__(452);
+__webpack_require__(263);
+__webpack_require__(986);
+__webpack_require__(165);
+
+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();
+}
+
+
+/***/ }),
+/* 600 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 601 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 602 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1beta3_1 = __webpack_require__(61);
+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
+
+/***/ }),
+/* 603 */,
+/* 604 */,
+/* 605 */
+/***/ (function(module) {
+
+module.exports = require("http");
+
+/***/ }),
+/* 606 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(586);
+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
+
+/***/ }),
+/* 607 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(123);
+const v1p1beta1_1 = __webpack_require__(493);
+const v1p2beta1_1 = __webpack_require__(781);
+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
+
+/***/ }),
+/* 608 */,
+/* 609 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v2_1 = __webpack_require__(561);
+const v3_1 = __webpack_require__(303);
+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
+
+/***/ }),
+/* 610 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(73);
+const v1beta_1 = __webpack_require__(908);
+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
+
+/***/ }),
+/* 611 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+/**
+ * Node.js module for all known Forge message digests.
+ *
+ * @author Dave Longley
+ *
+ * Copyright 2011-2017 Digital Bazaar, Inc.
+ */
+module.exports = __webpack_require__(688);
+
+__webpack_require__(263);
+__webpack_require__(986);
+__webpack_require__(219);
+__webpack_require__(833);
+
+
+/***/ }),
+/* 612 */,
+/* 613 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 614 */
+/***/ (function(module) {
+
+module.exports = require("events");
+
+/***/ }),
+/* 615 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(973);
+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
+
+/***/ }),
+/* 616 */,
+/* 617 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+/**
+ * Debugging support for web applications.
+ *
+ * @author David I. Lehn
+ *
+ * Copyright 2008-2013 Digital Bazaar, Inc.
+ */
+var forge = __webpack_require__(985);
+
+/* 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];
+ }
+ }
+};
+
+
+/***/ }),
+/* 618 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 619 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(547);
+const v1alpha_1 = __webpack_require__(632);
+const v1beta_1 = __webpack_require__(232);
+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
+
+/***/ }),
+/* 620 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 621 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+"use strict";
+
+const path = __webpack_require__(622);
+const pathKey = __webpack_require__(39);
+
+module.exports = opts => {
+ opts = Object.assign({
+ cwd: process.cwd(),
+ path: process.env[pathKey()]
+ }, opts);
+
+ let prev;
+ let pth = path.resolve(opts.cwd);
+ const ret = [];
+
+ while (prev !== pth) {
+ ret.push(path.join(pth, 'node_modules/.bin'));
+ prev = pth;
+ pth = path.resolve(pth, '..');
+ }
+
+ // ensure the running `node` binary is used
+ ret.push(path.dirname(process.execPath));
+
+ return ret.concat(opts.path).join(path.delimiter);
+};
+
+module.exports.env = opts => {
+ opts = Object.assign({
+ env: process.env
+ }, opts);
+
+ const env = Object.assign({}, opts.env);
+ const path = pathKey({env});
+
+ opts.path = env[path];
+ env[path] = module.exports(opts);
+
+ return env;
+};
+
+
+/***/ }),
+/* 622 */
+/***/ (function(module) {
+
+module.exports = require("path");
+
+/***/ }),
+/* 623 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(473);
+const v1beta1_1 = __webpack_require__(175);
+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
+
+/***/ }),
+/* 624 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v2_1 = __webpack_require__(318);
+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
+
+/***/ }),
+/* 625 */
+/***/ (function(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;
+
+
+/***/ }),
+/* 626 */,
+/* 627 */,
+/* 628 */
+/***/ (function(__unusedmodule, exports, __webpack_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 = __webpack_require__(614);
+const transporters_1 = __webpack_require__(178);
+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
+
+/***/ }),
+/* 629 */,
+/* 630 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(932);
+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
+
+/***/ }),
+/* 631 */
+/***/ (function(module) {
+
+module.exports = require("net");
+
+/***/ }),
+/* 632 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 633 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 634 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 635 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 636 */,
+/* 637 */,
+/* 638 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 639 */,
+/* 640 */,
+/* 641 */
+/***/ (function(module) {
+
+"use strict";
+
+module.exports = function (Yallist) {
+ Yallist.prototype[Symbol.iterator] = function* () {
+ for (let walker = this.head; walker; walker = walker.next) {
+ yield walker.value
+ }
+ }
+}
+
+
+/***/ }),
+/* 642 */
+/***/ (function(__unusedmodule, 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
+
+/***/ }),
+/* 643 */,
+/* 644 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 645 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(159);
+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
+
+/***/ }),
+/* 646 */,
+/* 647 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1beta1_1 = __webpack_require__(202);
+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
+
+/***/ }),
+/* 648 */
+/***/ (function(module, __unusedexports, __webpack_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 = __webpack_require__(985);
+__webpack_require__(165);
+
+// 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+/, '');
+}
+
+
+/***/ }),
+/* 649 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+module.exports = getLastPage
+
+const getPage = __webpack_require__(265)
+
+function getLastPage (octokit, link, headers) {
+ return getPage(octokit, link, 'last', headers)
+}
+
+
+/***/ }),
+/* 650 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+/**
+ * Object IDs for ASN.1.
+ *
+ * @author Dave Longley
+ *
+ * Copyright (c) 2010-2013 Digital Bazaar, Inc.
+ */
+var forge = __webpack_require__(985);
+
+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');
+
+
+/***/ }),
+/* 651 */,
+/* 652 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1b3_1 = __webpack_require__(954);
+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
+
+/***/ }),
+/* 653 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 654 */
+/***/ (function(module) {
+
+// This is not the set of all possible signals.
+//
+// It IS, however, the set of all signals that trigger
+// an exit on either Linux or BSD systems. Linux is a
+// superset of the signal names supported on BSD, and
+// the unknown signals just fail to register, so we can
+// catch that easily enough.
+//
+// Don't bother with SIGKILL. It's uncatchable, which
+// means that we can't fire any callbacks anyway.
+//
+// If a user does happen to register a handler on a non-
+// fatal signal like SIGWINCH or something, and then
+// exit, it'll end up firing `process.emit('exit')`, so
+// the handler will be fired anyway.
+//
+// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised
+// artificially, inherently leave the process in a
+// state from which it is not safe to try and enter JS
+// listeners.
+module.exports = [
+ 'SIGABRT',
+ 'SIGALRM',
+ 'SIGHUP',
+ 'SIGINT',
+ 'SIGTERM'
+]
+
+if (process.platform !== 'win32') {
+ module.exports.push(
+ 'SIGVTALRM',
+ 'SIGXCPU',
+ 'SIGXFSZ',
+ 'SIGUSR2',
+ 'SIGTRAP',
+ 'SIGSYS',
+ 'SIGQUIT',
+ 'SIGIOT'
+ // should detect profiler and enable/disable accordingly.
+ // see #21
+ // 'SIGPROF'
+ )
+}
+
+if (process.platform === 'linux') {
+ module.exports.push(
+ 'SIGIO',
+ 'SIGPOLL',
+ 'SIGPWR',
+ 'SIGSTKFLT',
+ 'SIGUNUSED'
+ )
+}
+
+
+/***/ }),
+/* 655 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 656 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 657 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v3_1 = __webpack_require__(394);
+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
+
+/***/ }),
+/* 658 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v2_1 = __webpack_require__(369);
+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
+
+/***/ }),
+/* 659 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1alpha1_1 = __webpack_require__(763);
+const v1beta1_1 = __webpack_require__(644);
+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
+
+/***/ }),
+/* 660 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 661 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(885);
+const v1beta2_1 = __webpack_require__(415);
+const v1p1beta1_1 = __webpack_require__(541);
+const v1p2beta1_1 = __webpack_require__(565);
+const v1p3beta1_1 = __webpack_require__(228);
+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
+
+/***/ }),
+/* 662 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1beta1_1 = __webpack_require__(600);
+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
+
+/***/ }),
+/* 663 */,
+/* 664 */,
+/* 665 */,
+/* 666 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+/**
+ * Javascript implementation of PKCS#1 PSS signature padding.
+ *
+ * @author Stefan Siegl
+ *
+ * Copyright (c) 2012 Stefan Siegl
+ */
+var forge = __webpack_require__(985);
+__webpack_require__(275);
+__webpack_require__(165);
+
+// 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;
+};
+
+
+/***/ }),
+/* 667 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+var bufferEqual = __webpack_require__(79);
+var Buffer = __webpack_require__(149).Buffer;
+var crypto = __webpack_require__(417);
+var formatEcdsa = __webpack_require__(815);
+var util = __webpack_require__(669);
+
+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),
+ }
+};
+
+
+/***/ }),
+/* 668 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 669 */
+/***/ (function(module) {
+
+module.exports = require("util");
+
+/***/ }),
+/* 670 */,
+/* 671 */
+/***/ (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);
+
+
+/***/ }),
+/* 672 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 673 */,
+/* 674 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 675 */
+/***/ (function(module) {
+
+module.exports = function btoa(str) {
+ return new Buffer(str).toString('base64')
+}
+
+
+/***/ }),
+/* 676 */,
+/* 677 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(764);
+const v1beta1_1 = __webpack_require__(230);
+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
+
+/***/ }),
+/* 678 */
+/***/ (function(module) {
+
+module.exports = {"_args":[["google-auth-library@6.0.0","C:\\Users\\JamesJohn\\opensource\\oppiabot"]],"_from":"google-auth-library@6.0.0","_id":"google-auth-library@6.0.0","_inBundle":false,"_integrity":"sha512-uLydy1t6SHN/EvYUJrtN3GCHFrnJ0c8HJjOxXiGjoTuYHIoCUT3jVxnzmjHwVnSdkfE9Akasm2rM6qG1COTXfQ==","_location":"/googleapis-common/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-common"],"_resolved":"https://registry.npmjs.org/google-auth-library/-/google-auth-library-6.0.0.tgz","_spec":"6.0.0","_where":"C:\\Users\\JamesJohn\\opensource\\oppiabot","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"};
+
+/***/ }),
+/* 679 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 680 */,
+/* 681 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(405);
+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
+
+/***/ }),
+/* 682 */
+/***/ (function(__unusedmodule, __unusedexports, __webpack_require__) {
+
+// Copyright 2020 The Oppia Authors. All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS-IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/**
+ * @fileoverview Entry point of oppiabot github actions.
+ */
+
+const core = __webpack_require__(470);
+const { context } = __webpack_require__(469);
+const dispatcher = __webpack_require__(760);
+
+core.info(
+ `About to dispatch:${context.eventName} and ${context.payload.action}.`
+);
+dispatcher.dispatch(context.eventName, context.payload.action);
+
+
+/***/ }),
+/* 683 */
+/***/ (function(__unusedmodule, 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
+
+/***/ }),
+/* 684 */,
+/* 685 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v2_1 = __webpack_require__(110);
+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
+
+/***/ }),
+/* 686 */
+/***/ (function(__unusedmodule, exports, __webpack_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 = __webpack_require__(284);
+const jwtaccess_1 = __webpack_require__(494);
+const oauth2client_1 = __webpack_require__(934);
+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
+
+/***/ }),
+/* 687 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+"use strict";
+
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+const events_1 = __webpack_require__(614);
+const debug_1 = __importDefault(__webpack_require__(377));
+const promisify_1 = __importDefault(__webpack_require__(254));
+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
+
+/***/ }),
+/* 688 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+/**
+ * Node.js module for Forge message digests.
+ *
+ * @author Dave Longley
+ *
+ * Copyright 2011-2017 Digital Bazaar, Inc.
+ */
+var forge = __webpack_require__(985);
+
+module.exports = forge.md = forge.md || {};
+forge.md.algorithms = forge.md.algorithms || {};
+
+
+/***/ }),
+/* 689 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 690 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 691 */,
+/* 692 */
+/***/ (function(__unusedmodule, exports) {
+
+"use strict";
+
+
+Object.defineProperty(exports, '__esModule', { value: true });
+
+class Deprecation extends Error {
+ constructor(message) {
+ super(message); // Maintains proper stack trace (only available on V8)
+
+ /* istanbul ignore next */
+
+ if (Error.captureStackTrace) {
+ Error.captureStackTrace(this, this.constructor);
+ }
+
+ this.name = 'Deprecation';
+ }
+
+}
+
+exports.Deprecation = Deprecation;
+
+
+/***/ }),
+/* 693 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(210);
+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
+
+/***/ }),
+/* 694 */
+/***/ (function(__unusedmodule, exports, __webpack_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 = __webpack_require__(442);
+const googleapis_common_1 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 695 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 696 */
+/***/ (function(module) {
+
+"use strict";
+
+
+/*!
+ * isobject
+ *
+ * Copyright (c) 2014-2017, Jon Schlinkert.
+ * Released under the MIT License.
+ */
+
+function isObject(val) {
+ return val != null && typeof val === 'object' && Array.isArray(val) === false;
+}
+
+/*!
+ * is-plain-object
+ *
+ * Copyright (c) 2014-2017, Jon Schlinkert.
+ * Released under the MIT License.
+ */
+
+function isObjectObject(o) {
+ return isObject(o) === true
+ && Object.prototype.toString.call(o) === '[object Object]';
+}
+
+function isPlainObject(o) {
+ var ctor,prot;
+
+ if (isObjectObject(o) === false) return false;
+
+ // If has modified constructor
+ ctor = o.constructor;
+ if (typeof ctor !== 'function') return false;
+
+ // If has modified prototype
+ prot = ctor.prototype;
+ if (isObjectObject(prot) === false) return false;
+
+ // If constructor does not have an Object-specific method
+ if (prot.hasOwnProperty('isPrototypeOf') === false) {
+ return false;
+ }
+
+ // Most likely a plain Object
+ return true;
+}
+
+module.exports = isPlainObject;
+
+
+/***/ }),
+/* 697 */
+/***/ (function(module) {
+
+"use strict";
+
+module.exports = (promise, onFinally) => {
+ onFinally = onFinally || (() => {});
+
+ return promise.then(
+ val => new Promise(resolve => {
+ resolve(onFinally());
+ }).then(() => val),
+ err => new Promise(resolve => {
+ resolve(onFinally());
+ }).then(() => {
+ throw err;
+ })
+ );
+};
+
+
+/***/ }),
+/* 698 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 699 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 700 */,
+/* 701 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v2_1 = __webpack_require__(488);
+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
+
+/***/ }),
+/* 702 */,
+/* 703 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(75);
+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
+
+/***/ }),
+/* 704 */,
+/* 705 */,
+/* 706 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v3_1 = __webpack_require__(749);
+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
+
+/***/ }),
+/* 707 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 708 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(97);
+const v2_1 = __webpack_require__(543);
+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
+
+/***/ }),
+/* 709 */,
+/* 710 */,
+/* 711 */,
+/* 712 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 713 */,
+/* 714 */
+/***/ (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();
+}));
+
+
+/***/ }),
+/* 715 */,
+/* 716 */
+/***/ (function(module, __unusedexports, __webpack_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 = __webpack_require__(985);
+__webpack_require__(165);
+__webpack_require__(275);
+__webpack_require__(986);
+
+// 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);
+}
+
+
+/***/ }),
+/* 717 */,
+/* 718 */
+/***/ (function(module, exports, __webpack_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 = __webpack_require__(403)(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;
+ }
+};
+
+
+/***/ }),
+/* 719 */
+/***/ (function(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;
+}
+
+
+/***/ }),
+/* 720 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(944);
+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
+
+/***/ }),
+/* 721 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 722 */,
+/* 723 */,
+/* 724 */,
+/* 725 */,
+/* 726 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 727 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 728 */,
+/* 729 */,
+/* 730 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 731 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 732 */,
+/* 733 */,
+/* 734 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(712);
+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
+
+/***/ }),
+/* 735 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 736 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 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 apirequest_1 = __webpack_require__(291);
+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
+
+/***/ }),
+/* 737 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 738 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+var json_stringify = __webpack_require__(278).stringify;
+var json_parse = __webpack_require__(337);
+
+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;
+
+
+/***/ }),
+/* 739 */,
+/* 740 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 741 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+const { requestLog } = __webpack_require__(916);
+const {
+ restEndpointMethods
+} = __webpack_require__(842);
+
+const Core = __webpack_require__(37);
+
+const CORE_PLUGINS = [
+ __webpack_require__(890),
+ __webpack_require__(953), // deprecated: remove in v17
+ requestLog,
+ __webpack_require__(786),
+ restEndpointMethods,
+ __webpack_require__(341),
+
+ __webpack_require__(850) // deprecated: remove in v17
+];
+
+const OctokitRest = Core.plugin(CORE_PLUGINS);
+
+function DeprecatedOctokit(options) {
+ const warn =
+ options && options.log && options.log.warn
+ ? options.log.warn
+ : console.warn;
+ warn(
+ '[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead'
+ );
+ return new OctokitRest(options);
+}
+
+const Octokit = Object.assign(DeprecatedOctokit, {
+ Octokit: OctokitRest
+});
+
+Object.keys(OctokitRest).forEach(key => {
+ /* istanbul ignore else */
+ if (OctokitRest.hasOwnProperty(key)) {
+ Octokit[key] = OctokitRest[key];
+ }
+});
+
+module.exports = Octokit;
+
+
+/***/ }),
+/* 742 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+var fs = __webpack_require__(747)
+var core
+if (process.platform === 'win32' || global.TESTING_WINDOWS) {
+ core = __webpack_require__(818)
+} else {
+ core = __webpack_require__(197)
+}
+
+module.exports = isexe
+isexe.sync = sync
+
+function isexe (path, options, cb) {
+ if (typeof options === 'function') {
+ cb = options
+ options = {}
+ }
+
+ if (!cb) {
+ if (typeof Promise !== 'function') {
+ throw new TypeError('callback not provided')
+ }
+
+ return new Promise(function (resolve, reject) {
+ isexe(path, options || {}, function (er, is) {
+ if (er) {
+ reject(er)
+ } else {
+ resolve(is)
+ }
+ })
+ })
+ }
+
+ core(path, options || {}, function (er, is) {
+ // ignore EACCES because that just means we aren't allowed to run it
+ if (er) {
+ if (er.code === 'EACCES' || options && options.ignoreErrors) {
+ er = null
+ is = false
+ }
+ }
+ cb(er, is)
+ })
+}
+
+function sync (path, options) {
+ // my kingdom for a filtered catch
+ try {
+ return core.sync(path, options || {})
+ } catch (er) {
+ if (options && options.ignoreErrors || er.code === 'EACCES') {
+ return false
+ } else {
+ throw er
+ }
+ }
+}
+
+
+/***/ }),
+/* 743 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(201);
+const v1alpha1_1 = __webpack_require__(248);
+const v1alpha2_1 = __webpack_require__(917);
+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
+
+/***/ }),
+/* 744 */,
+/* 745 */,
+/* 746 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+/**
+ * Node.js module for Forge.
+ *
+ * @author Dave Longley
+ *
+ * Copyright 2011-2016 Digital Bazaar, Inc.
+ */
+module.exports = __webpack_require__(985);
+__webpack_require__(220);
+__webpack_require__(515);
+__webpack_require__(937);
+__webpack_require__(891);
+__webpack_require__(617);
+__webpack_require__(121);
+__webpack_require__(338);
+__webpack_require__(452);
+__webpack_require__(490);
+__webpack_require__(981);
+__webpack_require__(611);
+__webpack_require__(276);
+__webpack_require__(892);
+__webpack_require__(648);
+__webpack_require__(716);
+__webpack_require__(340);
+__webpack_require__(980);
+__webpack_require__(517);
+__webpack_require__(161);
+__webpack_require__(137);
+__webpack_require__(666);
+__webpack_require__(275);
+__webpack_require__(930);
+__webpack_require__(599);
+__webpack_require__(552);
+__webpack_require__(367);
+__webpack_require__(165);
+
+
+/***/ }),
+/* 747 */
+/***/ (function(module) {
+
+module.exports = require("fs");
+
+/***/ }),
+/* 748 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 749 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 750 */,
+/* 751 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(889);
+const v1beta1_1 = __webpack_require__(940);
+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
+
+/***/ }),
+/* 752 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 753 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, '__esModule', { value: true });
+
+function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
+
+var endpoint = __webpack_require__(385);
+var universalUserAgent = __webpack_require__(211);
+var isPlainObject = _interopDefault(__webpack_require__(696));
+var nodeFetch = _interopDefault(__webpack_require__(454));
+var requestError = __webpack_require__(463);
+
+const VERSION = "5.4.2";
+
+function getBufferResponse(response) {
+ return response.arrayBuffer();
+}
+
+function fetchWrapper(requestOptions) {
+ if (isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) {
+ requestOptions.body = JSON.stringify(requestOptions.body);
+ }
+
+ let headers = {};
+ let status;
+ let url;
+ const fetch = requestOptions.request && requestOptions.request.fetch || nodeFetch;
+ return fetch(requestOptions.url, Object.assign({
+ method: requestOptions.method,
+ body: requestOptions.body,
+ headers: requestOptions.headers,
+ redirect: requestOptions.redirect
+ }, requestOptions.request)).then(response => {
+ url = response.url;
+ status = response.status;
+
+ for (const keyAndValue of response.headers) {
+ headers[keyAndValue[0]] = keyAndValue[1];
+ }
+
+ if (status === 204 || status === 205) {
+ return;
+ } // GitHub API returns 200 for HEAD requests
+
+
+ if (requestOptions.method === "HEAD") {
+ if (status < 400) {
+ return;
+ }
+
+ throw new requestError.RequestError(response.statusText, status, {
+ headers,
+ request: requestOptions
+ });
+ }
+
+ if (status === 304) {
+ throw new requestError.RequestError("Not modified", status, {
+ headers,
+ request: requestOptions
+ });
+ }
+
+ if (status >= 400) {
+ return response.text().then(message => {
+ const error = new requestError.RequestError(message, status, {
+ headers,
+ request: requestOptions
+ });
+
+ try {
+ let responseBody = JSON.parse(error.message);
+ Object.assign(error, responseBody);
+ let errors = responseBody.errors; // Assumption `errors` would always be in Array format
+
+ error.message = error.message + ": " + errors.map(JSON.stringify).join(", ");
+ } catch (e) {// ignore, see octokit/rest.js#684
+ }
+
+ throw error;
+ });
+ }
+
+ const contentType = response.headers.get("content-type");
+
+ if (/application\/json/.test(contentType)) {
+ return response.json();
+ }
+
+ if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) {
+ return response.text();
+ }
+
+ return getBufferResponse(response);
+ }).then(data => {
+ return {
+ status,
+ url,
+ headers,
+ data
+ };
+ }).catch(error => {
+ if (error instanceof requestError.RequestError) {
+ throw error;
+ }
+
+ throw new requestError.RequestError(error.message, 500, {
+ headers,
+ request: requestOptions
+ });
+ });
+}
+
+function withDefaults(oldEndpoint, newDefaults) {
+ const endpoint = oldEndpoint.defaults(newDefaults);
+
+ const newApi = function (route, parameters) {
+ const endpointOptions = endpoint.merge(route, parameters);
+
+ if (!endpointOptions.request || !endpointOptions.request.hook) {
+ return fetchWrapper(endpoint.parse(endpointOptions));
+ }
+
+ const request = (route, parameters) => {
+ return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters)));
+ };
+
+ Object.assign(request, {
+ endpoint,
+ defaults: withDefaults.bind(null, endpoint)
+ });
+ return endpointOptions.request.hook(request, endpointOptions);
+ };
+
+ return Object.assign(newApi, {
+ endpoint,
+ defaults: withDefaults.bind(null, endpoint)
+ });
+}
+
+const request = withDefaults(endpoint.endpoint, {
+ headers: {
+ "user-agent": `octokit-request.js/${VERSION} ${universalUserAgent.getUserAgent()}`
+ }
+});
+
+exports.request = request;
+//# sourceMappingURL=index.js.map
+
+
+/***/ }),
+/* 754 */,
+/* 755 */,
+/* 756 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(460);
+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
+
+/***/ }),
+/* 757 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+/*global module*/
+var Buffer = __webpack_require__(149).Buffer;
+var DataStream = __webpack_require__(501);
+var jwa = __webpack_require__(667);
+var Stream = __webpack_require__(413);
+var toString = __webpack_require__(224);
+var util = __webpack_require__(669);
+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;
+
+
+/***/ }),
+/* 758 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 759 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 760 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+// Copyright 2020 The Oppia Authors. All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS-IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/**
+ * @fileoverview Handles dispatching events and actions to different handlers.
+ */
+
+const core = __webpack_require__(470);
+const { context } = __webpack_require__(469);
+const issueLabelsModule = __webpack_require__(293);
+const checkIssueAssigneeModule = __webpack_require__(409);
+const constants = __webpack_require__(208);
+
+module.exports = {
+ async dispatch(event, action) {
+ core.info(`Received Event:${event} Action:${action}.`);
+ const checkEvent = `${event}_${action}`;
+ const repoName = context.payload.repository.name.toLowerCase();
+ const checksWhitelist = constants.getChecksWhitelist();
+ if (checksWhitelist.hasOwnProperty(repoName)) {
+ const checks = checksWhitelist[repoName];
+ if (checks.hasOwnProperty(checkEvent)) {
+ const checkList = checks[checkEvent];
+ for (var i = 0; i < checkList.length; i++) {
+ switch (checkList[i]) {
+ case constants.issuesLabelCheck:
+ await issueLabelsModule.checkLabels();
+ break;
+ case constants.issuesAssignedCheck:
+ await checkIssueAssigneeModule.checkAssignees();
+ break;
+ }
+ }
+ }
+ }
+ }
+};
+
+
+/***/ }),
+/* 761 */
+/***/ (function(module) {
+
+module.exports = require("zlib");
+
+/***/ }),
+/* 762 */,
+/* 763 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 764 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 765 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 766 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(698);
+const v1alpha1_1 = __webpack_require__(154);
+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
+
+/***/ }),
+/* 767 */
+/***/ (function(__unusedmodule, exports, __webpack_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(__webpack_require__(377));
+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
+
+/***/ }),
+/* 768 */
+/***/ (function(module) {
+
+"use strict";
+
+module.exports = function (x) {
+ var lf = typeof x === 'string' ? '\n' : '\n'.charCodeAt();
+ var cr = typeof x === 'string' ? '\r' : '\r'.charCodeAt();
+
+ if (x[x.length - 1] === lf) {
+ x = x.slice(0, x.length - 1);
+ }
+
+ if (x[x.length - 1] === cr) {
+ x = x.slice(0, x.length - 1);
+ }
+
+ return x;
+};
+
+
+/***/ }),
+/* 769 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(511);
+const v1beta2_1 = __webpack_require__(111);
+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
+
+/***/ }),
+/* 770 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 771 */,
+/* 772 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 773 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(497);
+const v1beta2_1 = __webpack_require__(166);
+const v2beta1_1 = __webpack_require__(873);
+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
+
+/***/ }),
+/* 774 */,
+/* 775 */,
+/* 776 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 777 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+module.exports = getFirstPage
+
+const getPage = __webpack_require__(265)
+
+function getFirstPage (octokit, link, headers) {
+ return getPage(octokit, link, 'first', headers)
+}
+
+
+/***/ }),
+/* 778 */,
+/* 779 */,
+/* 780 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 781 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 782 */,
+/* 783 */,
+/* 784 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const alpha_1 = __webpack_require__(449);
+const v2_1 = __webpack_require__(726);
+const v2beta_1 = __webpack_require__(339);
+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
+
+/***/ }),
+/* 785 */,
+/* 786 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+module.exports = paginatePlugin;
+
+const { paginateRest } = __webpack_require__(299);
+
+function paginatePlugin(octokit) {
+ Object.assign(octokit, paginateRest(octokit));
+}
+
+
+/***/ }),
+/* 787 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 788 */,
+/* 789 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 790 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+module.exports = authenticate;
+
+const { Deprecation } = __webpack_require__(692);
+const once = __webpack_require__(969);
+
+const deprecateAuthenticate = once((log, deprecation) => log.warn(deprecation));
+
+function authenticate(state, options) {
+ deprecateAuthenticate(
+ state.octokit.log,
+ new Deprecation(
+ '[@octokit/rest] octokit.authenticate() is deprecated. Use "auth" constructor option instead.'
+ )
+ );
+
+ if (!options) {
+ state.auth = false;
+ return;
+ }
+
+ switch (options.type) {
+ case "basic":
+ if (!options.username || !options.password) {
+ throw new Error(
+ "Basic authentication requires both a username and password to be set"
+ );
+ }
+ break;
+
+ case "oauth":
+ if (!options.token && !(options.key && options.secret)) {
+ throw new Error(
+ "OAuth2 authentication requires a token or key & secret to be set"
+ );
+ }
+ break;
+
+ case "token":
+ case "app":
+ if (!options.token) {
+ throw new Error("Token authentication requires a token to be set");
+ }
+ break;
+
+ default:
+ throw new Error(
+ "Invalid authentication type, must be 'basic', 'oauth', 'token' or 'app'"
+ );
+ }
+
+ state.auth = options;
+}
+
+
+/***/ }),
+/* 791 */,
+/* 792 */,
+/* 793 */,
+/* 794 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 795 */,
+/* 796 */,
+/* 797 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(27);
+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
+
+/***/ }),
+/* 798 */,
+/* 799 */,
+/* 800 */,
+/* 801 */,
+/* 802 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 803 */,
+/* 804 */,
+/* 805 */,
+/* 806 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 807 */
+/***/ (function(module, exports, __webpack_require__) {
+
+/**
+ * Module dependencies.
+ */
+
+const tty = __webpack_require__(867);
+const util = __webpack_require__(669);
+
+/**
+ * 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 = __webpack_require__(247);
+
+ 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 = __webpack_require__(403)(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);
+};
+
+
+/***/ }),
+/* 808 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(907);
+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
+
+/***/ }),
+/* 809 */,
+/* 810 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 811 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(740);
+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
+
+/***/ }),
+/* 812 */,
+/* 813 */
+/***/ (function(__unusedmodule, exports) {
+
+"use strict";
+
+
+Object.defineProperty(exports, '__esModule', { value: true });
+
+async function auth(token) {
+ const tokenType = token.split(/\./).length === 3 ? "app" : /^v\d+\./.test(token) ? "installation" : "oauth";
+ return {
+ type: "token",
+ token: token,
+ tokenType
+ };
+}
+
+/**
+ * Prefix token for usage in the Authorization header
+ *
+ * @param token OAuth token or JSON Web Token
+ */
+function withAuthorizationPrefix(token) {
+ if (token.split(/\./).length === 3) {
+ return `bearer ${token}`;
+ }
+
+ return `token ${token}`;
+}
+
+async function hook(token, request, route, parameters) {
+ const endpoint = request.endpoint.merge(route, parameters);
+ endpoint.headers.authorization = withAuthorizationPrefix(token);
+ return request(endpoint);
+}
+
+const createTokenAuth = function createTokenAuth(token) {
+ if (!token) {
+ throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
+ }
+
+ if (typeof token !== "string") {
+ throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");
+ }
+
+ token = token.replace(/^(token|bearer) +/i, "");
+ return Object.assign(auth.bind(null, token), {
+ hook: hook.bind(null, token)
+ });
+};
+
+exports.createTokenAuth = createTokenAuth;
+//# sourceMappingURL=index.js.map
+
+
+/***/ }),
+/* 814 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+module.exports = which
+which.sync = whichSync
+
+var isWindows = process.platform === 'win32' ||
+ process.env.OSTYPE === 'cygwin' ||
+ process.env.OSTYPE === 'msys'
+
+var path = __webpack_require__(622)
+var COLON = isWindows ? ';' : ':'
+var isexe = __webpack_require__(742)
+
+function getNotFoundError (cmd) {
+ var er = new Error('not found: ' + cmd)
+ er.code = 'ENOENT'
+
+ return er
+}
+
+function getPathInfo (cmd, opt) {
+ var colon = opt.colon || COLON
+ var pathEnv = opt.path || process.env.PATH || ''
+ var pathExt = ['']
+
+ pathEnv = pathEnv.split(colon)
+
+ var pathExtExe = ''
+ if (isWindows) {
+ pathEnv.unshift(process.cwd())
+ pathExtExe = (opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM')
+ pathExt = pathExtExe.split(colon)
+
+
+ // Always test the cmd itself first. isexe will check to make sure
+ // it's found in the pathExt set.
+ if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')
+ pathExt.unshift('')
+ }
+
+ // If it has a slash, then we don't bother searching the pathenv.
+ // just check the file itself, and that's it.
+ if (cmd.match(/\//) || isWindows && cmd.match(/\\/))
+ pathEnv = ['']
+
+ return {
+ env: pathEnv,
+ ext: pathExt,
+ extExe: pathExtExe
+ }
+}
+
+function which (cmd, opt, cb) {
+ if (typeof opt === 'function') {
+ cb = opt
+ opt = {}
+ }
+
+ var info = getPathInfo(cmd, opt)
+ var pathEnv = info.env
+ var pathExt = info.ext
+ var pathExtExe = info.extExe
+ var found = []
+
+ ;(function F (i, l) {
+ if (i === l) {
+ if (opt.all && found.length)
+ return cb(null, found)
+ else
+ return cb(getNotFoundError(cmd))
+ }
+
+ var pathPart = pathEnv[i]
+ if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"')
+ pathPart = pathPart.slice(1, -1)
+
+ var p = path.join(pathPart, cmd)
+ if (!pathPart && (/^\.[\\\/]/).test(cmd)) {
+ p = cmd.slice(0, 2) + p
+ }
+ ;(function E (ii, ll) {
+ if (ii === ll) return F(i + 1, l)
+ var ext = pathExt[ii]
+ isexe(p + ext, { pathExt: pathExtExe }, function (er, is) {
+ if (!er && is) {
+ if (opt.all)
+ found.push(p + ext)
+ else
+ return cb(null, p + ext)
+ }
+ return E(ii + 1, ll)
+ })
+ })(0, pathExt.length)
+ })(0, pathEnv.length)
+}
+
+function whichSync (cmd, opt) {
+ opt = opt || {}
+
+ var info = getPathInfo(cmd, opt)
+ var pathEnv = info.env
+ var pathExt = info.ext
+ var pathExtExe = info.extExe
+ var found = []
+
+ for (var i = 0, l = pathEnv.length; i < l; i ++) {
+ var pathPart = pathEnv[i]
+ if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"')
+ pathPart = pathPart.slice(1, -1)
+
+ var p = path.join(pathPart, cmd)
+ if (!pathPart && /^\.[\\\/]/.test(cmd)) {
+ p = cmd.slice(0, 2) + p
+ }
+ for (var j = 0, ll = pathExt.length; j < ll; j ++) {
+ var cur = p + pathExt[j]
+ var is
+ try {
+ is = isexe.sync(cur, { pathExt: pathExtExe })
+ if (is) {
+ if (opt.all)
+ found.push(cur)
+ else
+ return cur
+ }
+ } catch (ex) {}
+ }
+ }
+
+ if (opt.all && found.length)
+ return found
+
+ if (opt.nothrow)
+ return null
+
+ throw getNotFoundError(cmd)
+}
+
+
+/***/ }),
+/* 815 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+"use strict";
+
+
+var Buffer = __webpack_require__(149).Buffer;
+
+var getParamBytesForAlg = __webpack_require__(192);
+
+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
+};
+
+
+/***/ }),
+/* 816 */
+/***/ (function(module) {
+
+"use strict";
+
+module.exports = /^#!.*/;
+
+
+/***/ }),
+/* 817 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(548);
+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
+
+/***/ }),
+/* 818 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+module.exports = isexe
+isexe.sync = sync
+
+var fs = __webpack_require__(747)
+
+function checkPathExt (path, options) {
+ var pathext = options.pathExt !== undefined ?
+ options.pathExt : process.env.PATHEXT
+
+ if (!pathext) {
+ return true
+ }
+
+ pathext = pathext.split(';')
+ if (pathext.indexOf('') !== -1) {
+ return true
+ }
+ for (var i = 0; i < pathext.length; i++) {
+ var p = pathext[i].toLowerCase()
+ if (p && path.substr(-p.length).toLowerCase() === p) {
+ return true
+ }
+ }
+ return false
+}
+
+function checkStat (stat, path, options) {
+ if (!stat.isSymbolicLink() && !stat.isFile()) {
+ return false
+ }
+ return checkPathExt(path, options)
+}
+
+function isexe (path, options, cb) {
+ fs.stat(path, function (er, stat) {
+ cb(er, er ? false : checkStat(stat, path, options))
+ })
+}
+
+function sync (path, options) {
+ return checkStat(fs.statSync(path), path, options)
+}
+
+
+/***/ }),
+/* 819 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT 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 = __webpack_require__(694);
+Object.defineProperty(exports, "GoogleApis", { enumerable: true, get: function () { return googleapis_1.GoogleApis; } });
+const google = new googleapis_1.GoogleApis();
+exports.google = google;
+var v1_1 = __webpack_require__(128);
+Object.defineProperty(exports, "abusiveexperiencereport_v1", { enumerable: true, get: function () { return v1_1.abusiveexperiencereport_v1; } });
+var v1_2 = __webpack_require__(326);
+Object.defineProperty(exports, "acceleratedmobilepageurl_v1", { enumerable: true, get: function () { return v1_2.acceleratedmobilepageurl_v1; } });
+var v1_3 = __webpack_require__(42);
+Object.defineProperty(exports, "accessapproval_v1", { enumerable: true, get: function () { return v1_3.accessapproval_v1; } });
+var v1beta1_1 = __webpack_require__(780);
+Object.defineProperty(exports, "accessapproval_v1beta1", { enumerable: true, get: function () { return v1beta1_1.accessapproval_v1beta1; } });
+var v1_4 = __webpack_require__(227);
+Object.defineProperty(exports, "accesscontextmanager_v1", { enumerable: true, get: function () { return v1_4.accesscontextmanager_v1; } });
+var v1beta_1 = __webpack_require__(551);
+Object.defineProperty(exports, "accesscontextmanager_v1beta", { enumerable: true, get: function () { return v1beta_1.accesscontextmanager_v1beta; } });
+var v1_2_1 = __webpack_require__(914);
+Object.defineProperty(exports, "adexchangebuyer_v1_2", { enumerable: true, get: function () { return v1_2_1.adexchangebuyer_v1_2; } });
+var v1_3_1 = __webpack_require__(845);
+Object.defineProperty(exports, "adexchangebuyer_v1_3", { enumerable: true, get: function () { return v1_3_1.adexchangebuyer_v1_3; } });
+var v1_4_1 = __webpack_require__(433);
+Object.defineProperty(exports, "adexchangebuyer_v1_4", { enumerable: true, get: function () { return v1_4_1.adexchangebuyer_v1_4; } });
+var v2beta1_1 = __webpack_require__(328);
+Object.defineProperty(exports, "adexchangebuyer2_v2beta1", { enumerable: true, get: function () { return v2beta1_1.adexchangebuyer2_v2beta1; } });
+var v1_5 = __webpack_require__(548);
+Object.defineProperty(exports, "adexperiencereport_v1", { enumerable: true, get: function () { return v1_5.adexperiencereport_v1; } });
+var datatransfer_v1_1 = __webpack_require__(84);
+Object.defineProperty(exports, "admin_datatransfer_v1", { enumerable: true, get: function () { return datatransfer_v1_1.admin_datatransfer_v1; } });
+var directory_v1_1 = __webpack_require__(423);
+Object.defineProperty(exports, "admin_directory_v1", { enumerable: true, get: function () { return directory_v1_1.admin_directory_v1; } });
+var reports_v1_1 = __webpack_require__(748);
+Object.defineProperty(exports, "admin_reports_v1", { enumerable: true, get: function () { return reports_v1_1.admin_reports_v1; } });
+var v1_6 = __webpack_require__(549);
+Object.defineProperty(exports, "admob_v1", { enumerable: true, get: function () { return v1_6.admob_v1; } });
+var v1_4_2 = __webpack_require__(206);
+Object.defineProperty(exports, "adsense_v1_4", { enumerable: true, get: function () { return v1_4_2.adsense_v1_4; } });
+var v4_1_1 = __webpack_require__(77);
+Object.defineProperty(exports, "adsensehost_v4_1", { enumerable: true, get: function () { return v4_1_1.adsensehost_v4_1; } });
+var v1beta1_2 = __webpack_require__(359);
+Object.defineProperty(exports, "alertcenter_v1beta1", { enumerable: true, get: function () { return v1beta1_2.alertcenter_v1beta1; } });
+var v3_1 = __webpack_require__(59);
+Object.defineProperty(exports, "analytics_v3", { enumerable: true, get: function () { return v3_1.analytics_v3; } });
+var v4_1 = __webpack_require__(554);
+Object.defineProperty(exports, "analyticsreporting_v4", { enumerable: true, get: function () { return v4_1.analyticsreporting_v4; } });
+var v1_7 = __webpack_require__(721);
+Object.defineProperty(exports, "androiddeviceprovisioning_v1", { enumerable: true, get: function () { return v1_7.androiddeviceprovisioning_v1; } });
+var v1_8 = __webpack_require__(75);
+Object.defineProperty(exports, "androidenterprise_v1", { enumerable: true, get: function () { return v1_8.androidenterprise_v1; } });
+var v1_9 = __webpack_require__(901);
+Object.defineProperty(exports, "androidmanagement_v1", { enumerable: true, get: function () { return v1_9.androidmanagement_v1; } });
+var v1_1_1 = __webpack_require__(122);
+Object.defineProperty(exports, "androidpublisher_v1_1", { enumerable: true, get: function () { return v1_1_1.androidpublisher_v1_1; } });
+var v1_10 = __webpack_require__(286);
+Object.defineProperty(exports, "androidpublisher_v1", { enumerable: true, get: function () { return v1_10.androidpublisher_v1; } });
+var v2_1 = __webpack_require__(945);
+Object.defineProperty(exports, "androidpublisher_v2", { enumerable: true, get: function () { return v2_1.androidpublisher_v2; } });
+var v3_2 = __webpack_require__(285);
+Object.defineProperty(exports, "androidpublisher_v3", { enumerable: true, get: function () { return v3_2.androidpublisher_v3; } });
+var v1_11 = __webpack_require__(840);
+Object.defineProperty(exports, "appengine_v1", { enumerable: true, get: function () { return v1_11.appengine_v1; } });
+var v1alpha_1 = __webpack_require__(765);
+Object.defineProperty(exports, "appengine_v1alpha", { enumerable: true, get: function () { return v1alpha_1.appengine_v1alpha; } });
+var v1beta_2 = __webpack_require__(282);
+Object.defineProperty(exports, "appengine_v1beta", { enumerable: true, get: function () { return v1beta_2.appengine_v1beta; } });
+var v1_12 = __webpack_require__(556);
+Object.defineProperty(exports, "appsactivity_v1", { enumerable: true, get: function () { return v1_12.appsactivity_v1; } });
+var v2_2 = __webpack_require__(895);
+Object.defineProperty(exports, "bigquery_v2", { enumerable: true, get: function () { return v2_2.bigquery_v2; } });
+var v1beta1_3 = __webpack_require__(529);
+Object.defineProperty(exports, "bigqueryconnection_v1beta1", { enumerable: true, get: function () { return v1beta1_3.bigqueryconnection_v1beta1; } });
+var v1_13 = __webpack_require__(586);
+Object.defineProperty(exports, "bigquerydatatransfer_v1", { enumerable: true, get: function () { return v1_13.bigquerydatatransfer_v1; } });
+var v1_14 = __webpack_require__(794);
+Object.defineProperty(exports, "bigqueryreservation_v1", { enumerable: true, get: function () { return v1_14.bigqueryreservation_v1; } });
+var v1alpha2_1 = __webpack_require__(307);
+Object.defineProperty(exports, "bigqueryreservation_v1alpha2", { enumerable: true, get: function () { return v1alpha2_1.bigqueryreservation_v1alpha2; } });
+var v1beta1_4 = __webpack_require__(237);
+Object.defineProperty(exports, "bigqueryreservation_v1beta1", { enumerable: true, get: function () { return v1beta1_4.bigqueryreservation_v1beta1; } });
+var v1_15 = __webpack_require__(103);
+Object.defineProperty(exports, "bigtableadmin_v1", { enumerable: true, get: function () { return v1_15.bigtableadmin_v1; } });
+var v2_3 = __webpack_require__(827);
+Object.defineProperty(exports, "bigtableadmin_v2", { enumerable: true, get: function () { return v2_3.bigtableadmin_v2; } });
+var v1beta1_5 = __webpack_require__(136);
+Object.defineProperty(exports, "billingbudgets_v1beta1", { enumerable: true, get: function () { return v1beta1_5.billingbudgets_v1beta1; } });
+var v1_16 = __webpack_require__(3);
+Object.defineProperty(exports, "binaryauthorization_v1", { enumerable: true, get: function () { return v1_16.binaryauthorization_v1; } });
+var v1beta1_6 = __webpack_require__(542);
+Object.defineProperty(exports, "binaryauthorization_v1beta1", { enumerable: true, get: function () { return v1beta1_6.binaryauthorization_v1beta1; } });
+var v2_4 = __webpack_require__(561);
+Object.defineProperty(exports, "blogger_v2", { enumerable: true, get: function () { return v2_4.blogger_v2; } });
+var v3_3 = __webpack_require__(303);
+Object.defineProperty(exports, "blogger_v3", { enumerable: true, get: function () { return v3_3.blogger_v3; } });
+var v1_17 = __webpack_require__(613);
+Object.defineProperty(exports, "books_v1", { enumerable: true, get: function () { return v1_17.books_v1; } });
+var v3_4 = __webpack_require__(354);
+Object.defineProperty(exports, "calendar_v3", { enumerable: true, get: function () { return v3_4.calendar_v3; } });
+var v1_18 = __webpack_require__(712);
+Object.defineProperty(exports, "chat_v1", { enumerable: true, get: function () { return v1_18.chat_v1; } });
+var v2_5 = __webpack_require__(369);
+Object.defineProperty(exports, "civicinfo_v2", { enumerable: true, get: function () { return v2_5.civicinfo_v2; } });
+var v1_19 = __webpack_require__(217);
+Object.defineProperty(exports, "classroom_v1", { enumerable: true, get: function () { return v1_19.classroom_v1; } });
+var v1_20 = __webpack_require__(10);
+Object.defineProperty(exports, "cloudasset_v1", { enumerable: true, get: function () { return v1_20.cloudasset_v1; } });
+var v1beta1_7 = __webpack_require__(214);
+Object.defineProperty(exports, "cloudasset_v1beta1", { enumerable: true, get: function () { return v1beta1_7.cloudasset_v1beta1; } });
+var v1p1beta1_1 = __webpack_require__(253);
+Object.defineProperty(exports, "cloudasset_v1p1beta1", { enumerable: true, get: function () { return v1p1beta1_1.cloudasset_v1p1beta1; } });
+var v1p4beta1_1 = __webpack_require__(320);
+Object.defineProperty(exports, "cloudasset_v1p4beta1", { enumerable: true, get: function () { return v1p4beta1_1.cloudasset_v1p4beta1; } });
+var v1_21 = __webpack_require__(534);
+Object.defineProperty(exports, "cloudbilling_v1", { enumerable: true, get: function () { return v1_21.cloudbilling_v1; } });
+var v1_22 = __webpack_require__(201);
+Object.defineProperty(exports, "cloudbuild_v1", { enumerable: true, get: function () { return v1_22.cloudbuild_v1; } });
+var v1alpha1_1 = __webpack_require__(248);
+Object.defineProperty(exports, "cloudbuild_v1alpha1", { enumerable: true, get: function () { return v1alpha1_1.cloudbuild_v1alpha1; } });
+var v1alpha2_2 = __webpack_require__(917);
+Object.defineProperty(exports, "cloudbuild_v1alpha2", { enumerable: true, get: function () { return v1alpha2_2.cloudbuild_v1alpha2; } });
+var v2_6 = __webpack_require__(236);
+Object.defineProperty(exports, "clouddebugger_v2", { enumerable: true, get: function () { return v2_6.clouddebugger_v2; } });
+var v1beta1_8 = __webpack_require__(313);
+Object.defineProperty(exports, "clouderrorreporting_v1beta1", { enumerable: true, get: function () { return v1beta1_8.clouderrorreporting_v1beta1; } });
+var v1_23 = __webpack_require__(14);
+Object.defineProperty(exports, "cloudfunctions_v1", { enumerable: true, get: function () { return v1_23.cloudfunctions_v1; } });
+var v1beta2_1 = __webpack_require__(273);
+Object.defineProperty(exports, "cloudfunctions_v1beta2", { enumerable: true, get: function () { return v1beta2_1.cloudfunctions_v1beta2; } });
+var v1_24 = __webpack_require__(298);
+Object.defineProperty(exports, "cloudidentity_v1", { enumerable: true, get: function () { return v1_24.cloudidentity_v1; } });
+var v1beta1_9 = __webpack_require__(411);
+Object.defineProperty(exports, "cloudidentity_v1beta1", { enumerable: true, get: function () { return v1beta1_9.cloudidentity_v1beta1; } });
+var v1_25 = __webpack_require__(672);
+Object.defineProperty(exports, "cloudiot_v1", { enumerable: true, get: function () { return v1_25.cloudiot_v1; } });
+var v1_26 = __webpack_require__(973);
+Object.defineProperty(exports, "cloudkms_v1", { enumerable: true, get: function () { return v1_26.cloudkms_v1; } });
+var v2_7 = __webpack_require__(318);
+Object.defineProperty(exports, "cloudprofiler_v2", { enumerable: true, get: function () { return v2_7.cloudprofiler_v2; } });
+var v1_27 = __webpack_require__(509);
+Object.defineProperty(exports, "cloudresourcemanager_v1", { enumerable: true, get: function () { return v1_27.cloudresourcemanager_v1; } });
+var v1beta1_10 = __webpack_require__(530);
+Object.defineProperty(exports, "cloudresourcemanager_v1beta1", { enumerable: true, get: function () { return v1beta1_10.cloudresourcemanager_v1beta1; } });
+var v2_8 = __webpack_require__(508);
+Object.defineProperty(exports, "cloudresourcemanager_v2", { enumerable: true, get: function () { return v2_8.cloudresourcemanager_v2; } });
+var v2beta1_2 = __webpack_require__(668);
+Object.defineProperty(exports, "cloudresourcemanager_v2beta1", { enumerable: true, get: function () { return v2beta1_2.cloudresourcemanager_v2beta1; } });
+var v1_28 = __webpack_require__(570);
+Object.defineProperty(exports, "cloudscheduler_v1", { enumerable: true, get: function () { return v1_28.cloudscheduler_v1; } });
+var v1beta1_11 = __webpack_require__(124);
+Object.defineProperty(exports, "cloudscheduler_v1beta1", { enumerable: true, get: function () { return v1beta1_11.cloudscheduler_v1beta1; } });
+var v1_29 = __webpack_require__(386);
+Object.defineProperty(exports, "cloudsearch_v1", { enumerable: true, get: function () { return v1_29.cloudsearch_v1; } });
+var v1_30 = __webpack_require__(287);
+Object.defineProperty(exports, "cloudshell_v1", { enumerable: true, get: function () { return v1_30.cloudshell_v1; } });
+var v1alpha1_2 = __webpack_require__(857);
+Object.defineProperty(exports, "cloudshell_v1alpha1", { enumerable: true, get: function () { return v1alpha1_2.cloudshell_v1alpha1; } });
+var v2_9 = __webpack_require__(731);
+Object.defineProperty(exports, "cloudtasks_v2", { enumerable: true, get: function () { return v2_9.cloudtasks_v2; } });
+var v2beta2_1 = __webpack_require__(802);
+Object.defineProperty(exports, "cloudtasks_v2beta2", { enumerable: true, get: function () { return v2beta2_1.cloudtasks_v2beta2; } });
+var v2beta3_1 = __webpack_require__(707);
+Object.defineProperty(exports, "cloudtasks_v2beta3", { enumerable: true, get: function () { return v2beta3_1.cloudtasks_v2beta3; } });
+var v1_31 = __webpack_require__(101);
+Object.defineProperty(exports, "cloudtrace_v1", { enumerable: true, get: function () { return v1_31.cloudtrace_v1; } });
+var v2_10 = __webpack_require__(752);
+Object.defineProperty(exports, "cloudtrace_v2", { enumerable: true, get: function () { return v2_10.cloudtrace_v2; } });
+var v2beta1_3 = __webpack_require__(131);
+Object.defineProperty(exports, "cloudtrace_v2beta1", { enumerable: true, get: function () { return v2beta1_3.cloudtrace_v2beta1; } });
+var v1_32 = __webpack_require__(764);
+Object.defineProperty(exports, "composer_v1", { enumerable: true, get: function () { return v1_32.composer_v1; } });
+var v1beta1_12 = __webpack_require__(230);
+Object.defineProperty(exports, "composer_v1beta1", { enumerable: true, get: function () { return v1beta1_12.composer_v1beta1; } });
+var alpha_1 = __webpack_require__(951);
+Object.defineProperty(exports, "compute_alpha", { enumerable: true, get: function () { return alpha_1.compute_alpha; } });
+var beta_1 = __webpack_require__(233);
+Object.defineProperty(exports, "compute_beta", { enumerable: true, get: function () { return beta_1.compute_beta; } });
+var v1_33 = __webpack_require__(635);
+Object.defineProperty(exports, "compute_v1", { enumerable: true, get: function () { return v1_33.compute_v1; } });
+var v1_34 = __webpack_require__(889);
+Object.defineProperty(exports, "container_v1", { enumerable: true, get: function () { return v1_34.container_v1; } });
+var v1beta1_13 = __webpack_require__(940);
+Object.defineProperty(exports, "container_v1beta1", { enumerable: true, get: function () { return v1beta1_13.container_v1beta1; } });
+var v1alpha1_3 = __webpack_require__(763);
+Object.defineProperty(exports, "containeranalysis_v1alpha1", { enumerable: true, get: function () { return v1alpha1_3.containeranalysis_v1alpha1; } });
+var v1beta1_14 = __webpack_require__(644);
+Object.defineProperty(exports, "containeranalysis_v1beta1", { enumerable: true, get: function () { return v1beta1_14.containeranalysis_v1beta1; } });
+var v2_1_1 = __webpack_require__(839);
+Object.defineProperty(exports, "content_v2_1", { enumerable: true, get: function () { return v2_1_1.content_v2_1; } });
+var v2_11 = __webpack_require__(475);
+Object.defineProperty(exports, "content_v2", { enumerable: true, get: function () { return v2_11.content_v2; } });
+var v1_35 = __webpack_require__(932);
+Object.defineProperty(exports, "customsearch_v1", { enumerable: true, get: function () { return v1_35.customsearch_v1; } });
+var v1beta1_15 = __webpack_require__(350);
+Object.defineProperty(exports, "datacatalog_v1beta1", { enumerable: true, get: function () { return v1beta1_15.datacatalog_v1beta1; } });
+var v1b3_1 = __webpack_require__(954);
+Object.defineProperty(exports, "dataflow_v1b3", { enumerable: true, get: function () { return v1b3_1.dataflow_v1b3; } });
+var v1beta1_16 = __webpack_require__(695);
+Object.defineProperty(exports, "datafusion_v1beta1", { enumerable: true, get: function () { return v1beta1_16.datafusion_v1beta1; } });
+var v1_36 = __webpack_require__(388);
+Object.defineProperty(exports, "dataproc_v1", { enumerable: true, get: function () { return v1_36.dataproc_v1; } });
+var v1beta2_2 = __webpack_require__(523);
+Object.defineProperty(exports, "dataproc_v1beta2", { enumerable: true, get: function () { return v1beta2_2.dataproc_v1beta2; } });
+var v1_37 = __webpack_require__(618);
+Object.defineProperty(exports, "datastore_v1", { enumerable: true, get: function () { return v1_37.datastore_v1; } });
+var v1beta1_17 = __webpack_require__(234);
+Object.defineProperty(exports, "datastore_v1beta1", { enumerable: true, get: function () { return v1beta1_17.datastore_v1beta1; } });
+var v1beta3_1 = __webpack_require__(502);
+Object.defineProperty(exports, "datastore_v1beta3", { enumerable: true, get: function () { return v1beta3_1.datastore_v1beta3; } });
+var alpha_2 = __webpack_require__(449);
+Object.defineProperty(exports, "deploymentmanager_alpha", { enumerable: true, get: function () { return alpha_2.deploymentmanager_alpha; } });
+var v2_12 = __webpack_require__(726);
+Object.defineProperty(exports, "deploymentmanager_v2", { enumerable: true, get: function () { return v2_12.deploymentmanager_v2; } });
+var v2beta_1 = __webpack_require__(339);
+Object.defineProperty(exports, "deploymentmanager_v2beta", { enumerable: true, get: function () { return v2beta_1.deploymentmanager_v2beta; } });
+var v3_3_1 = __webpack_require__(959);
+Object.defineProperty(exports, "dfareporting_v3_3", { enumerable: true, get: function () { return v3_3_1.dfareporting_v3_3; } });
+var v3_4_1 = __webpack_require__(292);
+Object.defineProperty(exports, "dfareporting_v3_4", { enumerable: true, get: function () { return v3_4_1.dfareporting_v3_4; } });
+var v2_13 = __webpack_require__(968);
+Object.defineProperty(exports, "dialogflow_v2", { enumerable: true, get: function () { return v2_13.dialogflow_v2; } });
+var v2beta1_4 = __webpack_require__(80);
+Object.defineProperty(exports, "dialogflow_v2beta1", { enumerable: true, get: function () { return v2beta1_4.dialogflow_v2beta1; } });
+var v1_38 = __webpack_require__(913);
+Object.defineProperty(exports, "digitalassetlinks_v1", { enumerable: true, get: function () { return v1_38.digitalassetlinks_v1; } });
+var v1_39 = __webpack_require__(358);
+Object.defineProperty(exports, "discovery_v1", { enumerable: true, get: function () { return v1_39.discovery_v1; } });
+var v1_40 = __webpack_require__(164);
+Object.defineProperty(exports, "displayvideo_v1", { enumerable: true, get: function () { return v1_40.displayvideo_v1; } });
+var v2_14 = __webpack_require__(772);
+Object.defineProperty(exports, "dlp_v2", { enumerable: true, get: function () { return v2_14.dlp_v2; } });
+var v1_41 = __webpack_require__(497);
+Object.defineProperty(exports, "dns_v1", { enumerable: true, get: function () { return v1_41.dns_v1; } });
+var v1beta2_3 = __webpack_require__(166);
+Object.defineProperty(exports, "dns_v1beta2", { enumerable: true, get: function () { return v1beta2_3.dns_v1beta2; } });
+var v2beta1_5 = __webpack_require__(873);
+Object.defineProperty(exports, "dns_v2beta1", { enumerable: true, get: function () { return v2beta1_5.dns_v2beta1; } });
+var v1_42 = __webpack_require__(655);
+Object.defineProperty(exports, "docs_v1", { enumerable: true, get: function () { return v1_42.docs_v1; } });
+var v1_43 = __webpack_require__(210);
+Object.defineProperty(exports, "domainsrdap_v1", { enumerable: true, get: function () { return v1_43.domainsrdap_v1; } });
+var v1_1_2 = __webpack_require__(139);
+Object.defineProperty(exports, "doubleclickbidmanager_v1_1", { enumerable: true, get: function () { return v1_1_2.doubleclickbidmanager_v1_1; } });
+var v1_44 = __webpack_require__(25);
+Object.defineProperty(exports, "doubleclickbidmanager_v1", { enumerable: true, get: function () { return v1_44.doubleclickbidmanager_v1; } });
+var v2_15 = __webpack_require__(26);
+Object.defineProperty(exports, "doubleclicksearch_v2", { enumerable: true, get: function () { return v2_15.doubleclicksearch_v2; } });
+var v2_16 = __webpack_require__(583);
+Object.defineProperty(exports, "drive_v2", { enumerable: true, get: function () { return v2_16.drive_v2; } });
+var v3_5 = __webpack_require__(776);
+Object.defineProperty(exports, "drive_v3", { enumerable: true, get: function () { return v3_5.drive_v3; } });
+var v2_17 = __webpack_require__(488);
+Object.defineProperty(exports, "driveactivity_v2", { enumerable: true, get: function () { return v2_17.driveactivity_v2; } });
+var v1alpha1_4 = __webpack_require__(690);
+Object.defineProperty(exports, "factchecktools_v1alpha1", { enumerable: true, get: function () { return v1alpha1_4.factchecktools_v1alpha1; } });
+var v1_45 = __webpack_require__(279);
+Object.defineProperty(exports, "fcm_v1", { enumerable: true, get: function () { return v1_45.fcm_v1; } });
+var v1_46 = __webpack_require__(982);
+Object.defineProperty(exports, "file_v1", { enumerable: true, get: function () { return v1_46.file_v1; } });
+var v1beta1_18 = __webpack_require__(770);
+Object.defineProperty(exports, "file_v1beta1", { enumerable: true, get: function () { return v1beta1_18.file_v1beta1; } });
+var v1beta1_19 = __webpack_require__(172);
+Object.defineProperty(exports, "firebase_v1beta1", { enumerable: true, get: function () { return v1beta1_19.firebase_v1beta1; } });
+var v1_47 = __webpack_require__(907);
+Object.defineProperty(exports, "firebasedynamiclinks_v1", { enumerable: true, get: function () { return v1_47.firebasedynamiclinks_v1; } });
+var v1beta1_20 = __webpack_require__(202);
+Object.defineProperty(exports, "firebasehosting_v1beta1", { enumerable: true, get: function () { return v1beta1_20.firebasehosting_v1beta1; } });
+var v1beta2_4 = __webpack_require__(957);
+Object.defineProperty(exports, "firebaseml_v1beta2", { enumerable: true, get: function () { return v1beta2_4.firebaseml_v1beta2; } });
+var v1_48 = __webpack_require__(679);
+Object.defineProperty(exports, "firebaserules_v1", { enumerable: true, get: function () { return v1_48.firebaserules_v1; } });
+var v1_49 = __webpack_require__(920);
+Object.defineProperty(exports, "firestore_v1", { enumerable: true, get: function () { return v1_49.firestore_v1; } });
+var v1beta1_21 = __webpack_require__(231);
+Object.defineProperty(exports, "firestore_v1beta1", { enumerable: true, get: function () { return v1beta1_21.firestore_v1beta1; } });
+var v1beta2_5 = __webpack_require__(485);
+Object.defineProperty(exports, "firestore_v1beta2", { enumerable: true, get: function () { return v1beta2_5.firestore_v1beta2; } });
+var v1_50 = __webpack_require__(740);
+Object.defineProperty(exports, "fitness_v1", { enumerable: true, get: function () { return v1_50.fitness_v1; } });
+var v1_51 = __webpack_require__(401);
+Object.defineProperty(exports, "games_v1", { enumerable: true, get: function () { return v1_51.games_v1; } });
+var v1configuration_1 = __webpack_require__(505);
+Object.defineProperty(exports, "gamesConfiguration_v1configuration", { enumerable: true, get: function () { return v1configuration_1.gamesConfiguration_v1configuration; } });
+var v1management_1 = __webpack_require__(226);
+Object.defineProperty(exports, "gamesManagement_v1management", { enumerable: true, get: function () { return v1management_1.gamesManagement_v1management; } });
+var v1beta_3 = __webpack_require__(364);
+Object.defineProperty(exports, "gameservices_v1beta", { enumerable: true, get: function () { return v1beta_3.gameservices_v1beta; } });
+var v1_52 = __webpack_require__(419);
+Object.defineProperty(exports, "genomics_v1", { enumerable: true, get: function () { return v1_52.genomics_v1; } });
+var v1alpha2_3 = __webpack_require__(837);
+Object.defineProperty(exports, "genomics_v1alpha2", { enumerable: true, get: function () { return v1alpha2_3.genomics_v1alpha2; } });
+var v2alpha1_1 = __webpack_require__(941);
+Object.defineProperty(exports, "genomics_v2alpha1", { enumerable: true, get: function () { return v2alpha1_1.genomics_v2alpha1; } });
+var v1_53 = __webpack_require__(579);
+Object.defineProperty(exports, "gmail_v1", { enumerable: true, get: function () { return v1_53.gmail_v1; } });
+var v1_54 = __webpack_require__(656);
+Object.defineProperty(exports, "groupsmigration_v1", { enumerable: true, get: function () { return v1_54.groupsmigration_v1; } });
+var v1_55 = __webpack_require__(32);
+Object.defineProperty(exports, "groupssettings_v1", { enumerable: true, get: function () { return v1_55.groupssettings_v1; } });
+var v1_56 = __webpack_require__(487);
+Object.defineProperty(exports, "healthcare_v1", { enumerable: true, get: function () { return v1_56.healthcare_v1; } });
+var v1beta1_22 = __webpack_require__(961);
+Object.defineProperty(exports, "healthcare_v1beta1", { enumerable: true, get: function () { return v1beta1_22.healthcare_v1beta1; } });
+var v1_57 = __webpack_require__(148);
+Object.defineProperty(exports, "homegraph_v1", { enumerable: true, get: function () { return v1_57.homegraph_v1; } });
+var v1_58 = __webpack_require__(634);
+Object.defineProperty(exports, "iam_v1", { enumerable: true, get: function () { return v1_58.iam_v1; } });
+var v1_59 = __webpack_require__(22);
+Object.defineProperty(exports, "iamcredentials_v1", { enumerable: true, get: function () { return v1_59.iamcredentials_v1; } });
+var v1_60 = __webpack_require__(525);
+Object.defineProperty(exports, "iap_v1", { enumerable: true, get: function () { return v1_60.iap_v1; } });
+var v1beta1_23 = __webpack_require__(868);
+Object.defineProperty(exports, "iap_v1beta1", { enumerable: true, get: function () { return v1beta1_23.iap_v1beta1; } });
+var v3_6 = __webpack_require__(394);
+Object.defineProperty(exports, "identitytoolkit_v3", { enumerable: true, get: function () { return v3_6.identitytoolkit_v3; } });
+var v3_7 = __webpack_require__(879);
+Object.defineProperty(exports, "indexing_v3", { enumerable: true, get: function () { return v3_7.indexing_v3; } });
+var v2_18 = __webpack_require__(787);
+Object.defineProperty(exports, "jobs_v2", { enumerable: true, get: function () { return v2_18.jobs_v2; } });
+var v3_8 = __webpack_require__(994);
+Object.defineProperty(exports, "jobs_v3", { enumerable: true, get: function () { return v3_8.jobs_v3; } });
+var v3p1beta1_1 = __webpack_require__(30);
+Object.defineProperty(exports, "jobs_v3p1beta1", { enumerable: true, get: function () { return v3p1beta1_1.jobs_v3p1beta1; } });
+var v1_61 = __webpack_require__(38);
+Object.defineProperty(exports, "kgsearch_v1", { enumerable: true, get: function () { return v1_61.kgsearch_v1; } });
+var v1_62 = __webpack_require__(974);
+Object.defineProperty(exports, "language_v1", { enumerable: true, get: function () { return v1_62.language_v1; } });
+var v1beta1_24 = __webpack_require__(331);
+Object.defineProperty(exports, "language_v1beta1", { enumerable: true, get: function () { return v1beta1_24.language_v1beta1; } });
+var v1beta2_6 = __webpack_require__(156);
+Object.defineProperty(exports, "language_v1beta2", { enumerable: true, get: function () { return v1beta2_6.language_v1beta2; } });
+var v1_63 = __webpack_require__(113);
+Object.defineProperty(exports, "libraryagent_v1", { enumerable: true, get: function () { return v1_63.libraryagent_v1; } });
+var v1_64 = __webpack_require__(376);
+Object.defineProperty(exports, "licensing_v1", { enumerable: true, get: function () { return v1_64.licensing_v1; } });
+var v2beta_2 = __webpack_require__(48);
+Object.defineProperty(exports, "lifesciences_v2beta", { enumerable: true, get: function () { return v2beta_2.lifesciences_v2beta; } });
+var v2_19 = __webpack_require__(110);
+Object.defineProperty(exports, "logging_v2", { enumerable: true, get: function () { return v2_19.logging_v2; } });
+var v1_65 = __webpack_require__(94);
+Object.defineProperty(exports, "managedidentities_v1", { enumerable: true, get: function () { return v1_65.managedidentities_v1; } });
+var v1alpha1_5 = __webpack_require__(531);
+Object.defineProperty(exports, "managedidentities_v1alpha1", { enumerable: true, get: function () { return v1alpha1_5.managedidentities_v1alpha1; } });
+var v1beta1_25 = __webpack_require__(92);
+Object.defineProperty(exports, "managedidentities_v1beta1", { enumerable: true, get: function () { return v1beta1_25.managedidentities_v1beta1; } });
+var v1_66 = __webpack_require__(21);
+Object.defineProperty(exports, "manufacturers_v1", { enumerable: true, get: function () { return v1_66.manufacturers_v1; } });
+var v1beta2_7 = __webpack_require__(134);
+Object.defineProperty(exports, "memcache_v1beta2", { enumerable: true, get: function () { return v1beta2_7.memcache_v1beta2; } });
+var v1_67 = __webpack_require__(905);
+Object.defineProperty(exports, "ml_v1", { enumerable: true, get: function () { return v1_67.ml_v1; } });
+var v1_68 = __webpack_require__(918);
+Object.defineProperty(exports, "monitoring_v1", { enumerable: true, get: function () { return v1_68.monitoring_v1; } });
+var v3_9 = __webpack_require__(653);
+Object.defineProperty(exports, "monitoring_v3", { enumerable: true, get: function () { return v3_9.monitoring_v3; } });
+var v1beta1_26 = __webpack_require__(480);
+Object.defineProperty(exports, "networkmanagement_v1beta1", { enumerable: true, get: function () { return v1beta1_26.networkmanagement_v1beta1; } });
+var v2_20 = __webpack_require__(330);
+Object.defineProperty(exports, "oauth2_v2", { enumerable: true, get: function () { return v2_20.oauth2_v2; } });
+var v1_69 = __webpack_require__(375);
+Object.defineProperty(exports, "osconfig_v1", { enumerable: true, get: function () { return v1_69.osconfig_v1; } });
+var v1beta_4 = __webpack_require__(660);
+Object.defineProperty(exports, "osconfig_v1beta", { enumerable: true, get: function () { return v1beta_4.osconfig_v1beta; } });
+var v1_70 = __webpack_require__(547);
+Object.defineProperty(exports, "oslogin_v1", { enumerable: true, get: function () { return v1_70.oslogin_v1; } });
+var v1alpha_2 = __webpack_require__(632);
+Object.defineProperty(exports, "oslogin_v1alpha", { enumerable: true, get: function () { return v1alpha_2.oslogin_v1alpha; } });
+var v1beta_5 = __webpack_require__(232);
+Object.defineProperty(exports, "oslogin_v1beta", { enumerable: true, get: function () { return v1beta_5.oslogin_v1beta; } });
+var v2_21 = __webpack_require__(730);
+Object.defineProperty(exports, "pagespeedonline_v2", { enumerable: true, get: function () { return v2_21.pagespeedonline_v2; } });
+var v4_2 = __webpack_require__(119);
+Object.defineProperty(exports, "pagespeedonline_v4", { enumerable: true, get: function () { return v4_2.pagespeedonline_v4; } });
+var v5_1 = __webpack_require__(638);
+Object.defineProperty(exports, "pagespeedonline_v5", { enumerable: true, get: function () { return v5_1.pagespeedonline_v5; } });
+var v1_71 = __webpack_require__(258);
+Object.defineProperty(exports, "people_v1", { enumerable: true, get: function () { return v1_71.people_v1; } });
+var v1_72 = __webpack_require__(241);
+Object.defineProperty(exports, "playcustomapp_v1", { enumerable: true, get: function () { return v1_72.playcustomapp_v1; } });
+var v1_73 = __webpack_require__(440);
+Object.defineProperty(exports, "plus_v1", { enumerable: true, get: function () { return v1_73.plus_v1; } });
+var v1_74 = __webpack_require__(1);
+Object.defineProperty(exports, "policytroubleshooter_v1", { enumerable: true, get: function () { return v1_74.policytroubleshooter_v1; } });
+var v1beta_6 = __webpack_require__(382);
+Object.defineProperty(exports, "policytroubleshooter_v1beta", { enumerable: true, get: function () { return v1beta_6.policytroubleshooter_v1beta; } });
+var v1_75 = __webpack_require__(532);
+Object.defineProperty(exports, "poly_v1", { enumerable: true, get: function () { return v1_75.poly_v1; } });
+var v1alpha1_6 = __webpack_require__(467);
+Object.defineProperty(exports, "prod_tt_sasportal_v1alpha1", { enumerable: true, get: function () { return v1alpha1_6.prod_tt_sasportal_v1alpha1; } });
+var v1_76 = __webpack_require__(598);
+Object.defineProperty(exports, "pubsub_v1", { enumerable: true, get: function () { return v1_76.pubsub_v1; } });
+var v1beta1a_1 = __webpack_require__(553);
+Object.defineProperty(exports, "pubsub_v1beta1a", { enumerable: true, get: function () { return v1beta1a_1.pubsub_v1beta1a; } });
+var v1beta2_8 = __webpack_require__(127);
+Object.defineProperty(exports, "pubsub_v1beta2", { enumerable: true, get: function () { return v1beta2_8.pubsub_v1beta2; } });
+var v1beta1_27 = __webpack_require__(600);
+Object.defineProperty(exports, "recommender_v1beta1", { enumerable: true, get: function () { return v1beta1_27.recommender_v1beta1; } });
+var v1_77 = __webpack_require__(473);
+Object.defineProperty(exports, "redis_v1", { enumerable: true, get: function () { return v1_77.redis_v1; } });
+var v1beta1_28 = __webpack_require__(175);
+Object.defineProperty(exports, "redis_v1beta1", { enumerable: true, get: function () { return v1beta1_28.redis_v1beta1; } });
+var v1_78 = __webpack_require__(426);
+Object.defineProperty(exports, "remotebuildexecution_v1", { enumerable: true, get: function () { return v1_78.remotebuildexecution_v1; } });
+var v1alpha_3 = __webpack_require__(875);
+Object.defineProperty(exports, "remotebuildexecution_v1alpha", { enumerable: true, get: function () { return v1alpha_3.remotebuildexecution_v1alpha; } });
+var v2_22 = __webpack_require__(789);
+Object.defineProperty(exports, "remotebuildexecution_v2", { enumerable: true, get: function () { return v2_22.remotebuildexecution_v2; } });
+var v1_79 = __webpack_require__(516);
+Object.defineProperty(exports, "reseller_v1", { enumerable: true, get: function () { return v1_79.reseller_v1; } });
+var v1_80 = __webpack_require__(923);
+Object.defineProperty(exports, "run_v1", { enumerable: true, get: function () { return v1_80.run_v1; } });
+var v1alpha1_7 = __webpack_require__(238);
+Object.defineProperty(exports, "run_v1alpha1", { enumerable: true, get: function () { return v1alpha1_7.run_v1alpha1; } });
+var v1beta1_29 = __webpack_require__(88);
+Object.defineProperty(exports, "run_v1beta1", { enumerable: true, get: function () { return v1beta1_29.run_v1beta1; } });
+var v1_81 = __webpack_require__(601);
+Object.defineProperty(exports, "runtimeconfig_v1", { enumerable: true, get: function () { return v1_81.runtimeconfig_v1; } });
+var v1beta1_30 = __webpack_require__(699);
+Object.defineProperty(exports, "runtimeconfig_v1beta1", { enumerable: true, get: function () { return v1beta1_30.runtimeconfig_v1beta1; } });
+var v4_3 = __webpack_require__(674);
+Object.defineProperty(exports, "safebrowsing_v4", { enumerable: true, get: function () { return v4_3.safebrowsing_v4; } });
+var v1alpha1_8 = __webpack_require__(387);
+Object.defineProperty(exports, "sasportal_v1alpha1", { enumerable: true, get: function () { return v1alpha1_8.sasportal_v1alpha1; } });
+var v1_82 = __webpack_require__(448);
+Object.defineProperty(exports, "script_v1", { enumerable: true, get: function () { return v1_82.script_v1; } });
+var v1_83 = __webpack_require__(27);
+Object.defineProperty(exports, "searchconsole_v1", { enumerable: true, get: function () { return v1_83.searchconsole_v1; } });
+var v1_84 = __webpack_require__(589);
+Object.defineProperty(exports, "secretmanager_v1", { enumerable: true, get: function () { return v1_84.secretmanager_v1; } });
+var v1beta1_31 = __webpack_require__(689);
+Object.defineProperty(exports, "secretmanager_v1beta1", { enumerable: true, get: function () { return v1beta1_31.secretmanager_v1beta1; } });
+var v1_85 = __webpack_require__(988);
+Object.defineProperty(exports, "securitycenter_v1", { enumerable: true, get: function () { return v1_85.securitycenter_v1; } });
+var v1beta1_32 = __webpack_require__(246);
+Object.defineProperty(exports, "securitycenter_v1beta1", { enumerable: true, get: function () { return v1beta1_32.securitycenter_v1beta1; } });
+var v1p1alpha1_1 = __webpack_require__(44);
+Object.defineProperty(exports, "securitycenter_v1p1alpha1", { enumerable: true, get: function () { return v1p1alpha1_1.securitycenter_v1p1alpha1; } });
+var v1p1beta1_2 = __webpack_require__(737);
+Object.defineProperty(exports, "securitycenter_v1p1beta1", { enumerable: true, get: function () { return v1p1beta1_2.securitycenter_v1p1beta1; } });
+var v1_86 = __webpack_require__(112);
+Object.defineProperty(exports, "serviceconsumermanagement_v1", { enumerable: true, get: function () { return v1_86.serviceconsumermanagement_v1; } });
+var v1beta1_33 = __webpack_require__(735);
+Object.defineProperty(exports, "serviceconsumermanagement_v1beta1", { enumerable: true, get: function () { return v1beta1_33.serviceconsumermanagement_v1beta1; } });
+var v1_87 = __webpack_require__(944);
+Object.defineProperty(exports, "servicecontrol_v1", { enumerable: true, get: function () { return v1_87.servicecontrol_v1; } });
+var v1beta1_34 = __webpack_require__(991);
+Object.defineProperty(exports, "servicedirectory_v1beta1", { enumerable: true, get: function () { return v1beta1_34.servicedirectory_v1beta1; } });
+var v1_88 = __webpack_require__(239);
+Object.defineProperty(exports, "servicemanagement_v1", { enumerable: true, get: function () { return v1_88.servicemanagement_v1; } });
+var v1_89 = __webpack_require__(73);
+Object.defineProperty(exports, "servicenetworking_v1", { enumerable: true, get: function () { return v1_89.servicenetworking_v1; } });
+var v1beta_7 = __webpack_require__(908);
+Object.defineProperty(exports, "servicenetworking_v1beta", { enumerable: true, get: function () { return v1beta_7.servicenetworking_v1beta; } });
+var v1_90 = __webpack_require__(826);
+Object.defineProperty(exports, "serviceusage_v1", { enumerable: true, get: function () { return v1_90.serviceusage_v1; } });
+var v1beta1_35 = __webpack_require__(828);
+Object.defineProperty(exports, "serviceusage_v1beta1", { enumerable: true, get: function () { return v1beta1_35.serviceusage_v1beta1; } });
+var v4_4 = __webpack_require__(181);
+Object.defineProperty(exports, "sheets_v4", { enumerable: true, get: function () { return v4_4.sheets_v4; } });
+var v1_91 = __webpack_require__(477);
+Object.defineProperty(exports, "siteVerification_v1", { enumerable: true, get: function () { return v1_91.siteVerification_v1; } });
+var v1_92 = __webpack_require__(759);
+Object.defineProperty(exports, "slides_v1", { enumerable: true, get: function () { return v1_92.slides_v1; } });
+var v1_93 = __webpack_require__(12);
+Object.defineProperty(exports, "sourcerepo_v1", { enumerable: true, get: function () { return v1_93.sourcerepo_v1; } });
+var v1_94 = __webpack_require__(159);
+Object.defineProperty(exports, "spanner_v1", { enumerable: true, get: function () { return v1_94.spanner_v1; } });
+var v1_95 = __webpack_require__(838);
+Object.defineProperty(exports, "speech_v1", { enumerable: true, get: function () { return v1_95.speech_v1; } });
+var v1p1beta1_3 = __webpack_require__(806);
+Object.defineProperty(exports, "speech_v1p1beta1", { enumerable: true, get: function () { return v1p1beta1_3.speech_v1p1beta1; } });
+var v2beta1_6 = __webpack_require__(45);
+Object.defineProperty(exports, "speech_v2beta1", { enumerable: true, get: function () { return v2beta1_6.speech_v2beta1; } });
+var v1beta4_1 = __webpack_require__(309);
+Object.defineProperty(exports, "sql_v1beta4", { enumerable: true, get: function () { return v1beta4_1.sql_v1beta4; } });
+var v1_96 = __webpack_require__(511);
+Object.defineProperty(exports, "storage_v1", { enumerable: true, get: function () { return v1_96.storage_v1; } });
+var v1beta2_9 = __webpack_require__(111);
+Object.defineProperty(exports, "storage_v1beta2", { enumerable: true, get: function () { return v1beta2_9.storage_v1beta2; } });
+var v1_97 = __webpack_require__(189);
+Object.defineProperty(exports, "storagetransfer_v1", { enumerable: true, get: function () { return v1_97.storagetransfer_v1; } });
+var v1_98 = __webpack_require__(500);
+Object.defineProperty(exports, "streetviewpublish_v1", { enumerable: true, get: function () { return v1_98.streetviewpublish_v1; } });
+var v1_99 = __webpack_require__(97);
+Object.defineProperty(exports, "tagmanager_v1", { enumerable: true, get: function () { return v1_99.tagmanager_v1; } });
+var v2_23 = __webpack_require__(543);
+Object.defineProperty(exports, "tagmanager_v2", { enumerable: true, get: function () { return v2_23.tagmanager_v2; } });
+var v1_100 = __webpack_require__(727);
+Object.defineProperty(exports, "tasks_v1", { enumerable: true, get: function () { return v1_100.tasks_v1; } });
+var v1_101 = __webpack_require__(405);
+Object.defineProperty(exports, "testing_v1", { enumerable: true, get: function () { return v1_101.testing_v1; } });
+var v1_102 = __webpack_require__(758);
+Object.defineProperty(exports, "texttospeech_v1", { enumerable: true, get: function () { return v1_102.texttospeech_v1; } });
+var v1beta1_36 = __webpack_require__(398);
+Object.defineProperty(exports, "texttospeech_v1beta1", { enumerable: true, get: function () { return v1beta1_36.texttospeech_v1beta1; } });
+var v1beta3_2 = __webpack_require__(61);
+Object.defineProperty(exports, "toolresults_v1beta3", { enumerable: true, get: function () { return v1beta3_2.toolresults_v1beta3; } });
+var v1_103 = __webpack_require__(698);
+Object.defineProperty(exports, "tpu_v1", { enumerable: true, get: function () { return v1_103.tpu_v1; } });
+var v1alpha1_9 = __webpack_require__(154);
+Object.defineProperty(exports, "tpu_v1alpha1", { enumerable: true, get: function () { return v1alpha1_9.tpu_v1alpha1; } });
+var v2_24 = __webpack_require__(620);
+Object.defineProperty(exports, "translate_v2", { enumerable: true, get: function () { return v2_24.translate_v2; } });
+var v3_10 = __webpack_require__(378);
+Object.defineProperty(exports, "translate_v3", { enumerable: true, get: function () { return v3_10.translate_v3; } });
+var v3beta1_1 = __webpack_require__(496);
+Object.defineProperty(exports, "translate_v3beta1", { enumerable: true, get: function () { return v3beta1_1.translate_v3beta1; } });
+var v1_104 = __webpack_require__(460);
+Object.defineProperty(exports, "vault_v1", { enumerable: true, get: function () { return v1_104.vault_v1; } });
+var v1_105 = __webpack_require__(393);
+Object.defineProperty(exports, "verifiedaccess_v1", { enumerable: true, get: function () { return v1_105.verifiedaccess_v1; } });
+var v1_106 = __webpack_require__(885);
+Object.defineProperty(exports, "videointelligence_v1", { enumerable: true, get: function () { return v1_106.videointelligence_v1; } });
+var v1beta2_10 = __webpack_require__(415);
+Object.defineProperty(exports, "videointelligence_v1beta2", { enumerable: true, get: function () { return v1beta2_10.videointelligence_v1beta2; } });
+var v1p1beta1_4 = __webpack_require__(541);
+Object.defineProperty(exports, "videointelligence_v1p1beta1", { enumerable: true, get: function () { return v1p1beta1_4.videointelligence_v1p1beta1; } });
+var v1p2beta1_1 = __webpack_require__(565);
+Object.defineProperty(exports, "videointelligence_v1p2beta1", { enumerable: true, get: function () { return v1p2beta1_1.videointelligence_v1p2beta1; } });
+var v1p3beta1_1 = __webpack_require__(228);
+Object.defineProperty(exports, "videointelligence_v1p3beta1", { enumerable: true, get: function () { return v1p3beta1_1.videointelligence_v1p3beta1; } });
+var v1_107 = __webpack_require__(123);
+Object.defineProperty(exports, "vision_v1", { enumerable: true, get: function () { return v1_107.vision_v1; } });
+var v1p1beta1_5 = __webpack_require__(493);
+Object.defineProperty(exports, "vision_v1p1beta1", { enumerable: true, get: function () { return v1p1beta1_5.vision_v1p1beta1; } });
+var v1p2beta1_2 = __webpack_require__(781);
+Object.defineProperty(exports, "vision_v1p2beta1", { enumerable: true, get: function () { return v1p2beta1_2.vision_v1p2beta1; } });
+var v1_108 = __webpack_require__(858);
+Object.defineProperty(exports, "webfonts_v1", { enumerable: true, get: function () { return v1_108.webfonts_v1; } });
+var v3_11 = __webpack_require__(749);
+Object.defineProperty(exports, "webmasters_v3", { enumerable: true, get: function () { return v3_11.webmasters_v3; } });
+var v1_109 = __webpack_require__(174);
+Object.defineProperty(exports, "websecurityscanner_v1", { enumerable: true, get: function () { return v1_109.websecurityscanner_v1; } });
+var v1alpha_4 = __webpack_require__(810);
+Object.defineProperty(exports, "websecurityscanner_v1alpha", { enumerable: true, get: function () { return v1alpha_4.websecurityscanner_v1alpha; } });
+var v1beta_8 = __webpack_require__(381);
+Object.defineProperty(exports, "websecurityscanner_v1beta", { enumerable: true, get: function () { return v1beta_8.websecurityscanner_v1beta; } });
+var v3_12 = __webpack_require__(261);
+Object.defineProperty(exports, "youtube_v3", { enumerable: true, get: function () { return v3_12.youtube_v3; } });
+var v1_110 = __webpack_require__(683);
+Object.defineProperty(exports, "youtubeAnalytics_v1", { enumerable: true, get: function () { return v1_110.youtubeAnalytics_v1; } });
+var v2_25 = __webpack_require__(633);
+Object.defineProperty(exports, "youtubeAnalytics_v2", { enumerable: true, get: function () { return v2_25.youtubeAnalytics_v2; } });
+var v1_111 = __webpack_require__(222);
+Object.defineProperty(exports, "youtubereporting_v1", { enumerable: true, get: function () { return v1_111.youtubereporting_v1; } });
+//# sourceMappingURL=index.js.map
+
+/***/ }),
+/* 820 */,
+/* 821 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(679);
+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
+
+/***/ }),
+/* 822 */,
+/* 823 */,
+/* 824 */,
+/* 825 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(101);
+const v2_1 = __webpack_require__(752);
+const v2beta1_1 = __webpack_require__(131);
+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
+
+/***/ }),
+/* 826 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 827 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 828 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 829 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(217);
+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
+
+/***/ }),
+/* 830 */
+/***/ (function(__unusedmodule, exports, __webpack_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(__webpack_require__(374));
+const node_fetch_1 = __importDefault(__webpack_require__(454));
+const querystring_1 = __importDefault(__webpack_require__(191));
+const is_stream_1 = __importDefault(__webpack_require__(625));
+const url_1 = __importDefault(__webpack_require__(835));
+const common_1 = __webpack_require__(259);
+const retry_1 = __webpack_require__(642);
+/* 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 = __webpack_require__(225);
+ }
+ 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
+
+/***/ }),
+/* 831 */,
+/* 832 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(913);
+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
+
+/***/ }),
+/* 833 */
+/***/ (function(module, __unusedexports, __webpack_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 = __webpack_require__(985);
+__webpack_require__(688);
+__webpack_require__(165);
+
+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;
+ }
+}
+
+
+/***/ }),
+/* 834 */,
+/* 835 */
+/***/ (function(module) {
+
+module.exports = require("url");
+
+/***/ }),
+/* 836 */,
+/* 837 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 838 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 839 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 840 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 841 */,
+/* 842 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, '__esModule', { value: true });
+
+var deprecation = __webpack_require__(692);
+
+var endpointsByScope = {
+ actions: {
+ cancelWorkflowRun: {
+ method: "POST",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ run_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/repos/:owner/:repo/actions/runs/:run_id/cancel"
+ },
+ createOrUpdateSecretForRepo: {
+ method: "PUT",
+ params: {
+ encrypted_value: {
+ type: "string"
+ },
+ key_id: {
+ type: "string"
+ },
+ name: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/actions/secrets/:name"
+ },
+ createRegistrationToken: {
+ method: "POST",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/actions/runners/registration-token"
+ },
+ createRemoveToken: {
+ method: "POST",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/actions/runners/remove-token"
+ },
+ deleteArtifact: {
+ method: "DELETE",
+ params: {
+ artifact_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/actions/artifacts/:artifact_id"
+ },
+ deleteSecretFromRepo: {
+ method: "DELETE",
+ params: {
+ name: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/actions/secrets/:name"
+ },
+ downloadArtifact: {
+ method: "GET",
+ params: {
+ archive_format: {
+ required: true,
+ type: "string"
+ },
+ artifact_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format"
+ },
+ getArtifact: {
+ method: "GET",
+ params: {
+ artifact_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/actions/artifacts/:artifact_id"
+ },
+ getPublicKey: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/actions/secrets/public-key"
+ },
+ getSecret: {
+ method: "GET",
+ params: {
+ name: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/actions/secrets/:name"
+ },
+ getSelfHostedRunner: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ runner_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/repos/:owner/:repo/actions/runners/:runner_id"
+ },
+ getWorkflow: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ workflow_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/repos/:owner/:repo/actions/workflows/:workflow_id"
+ },
+ getWorkflowJob: {
+ method: "GET",
+ params: {
+ job_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/actions/jobs/:job_id"
+ },
+ getWorkflowRun: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ run_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/repos/:owner/:repo/actions/runs/:run_id"
+ },
+ listDownloadsForSelfHostedRunnerApplication: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/actions/runners/downloads"
+ },
+ listJobsForWorkflowRun: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ run_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/repos/:owner/:repo/actions/runs/:run_id/jobs"
+ },
+ listRepoWorkflowRuns: {
+ method: "GET",
+ params: {
+ actor: {
+ type: "string"
+ },
+ branch: {
+ type: "string"
+ },
+ event: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ status: {
+ enum: ["completed", "status", "conclusion"],
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/actions/runs"
+ },
+ listRepoWorkflows: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/actions/workflows"
+ },
+ listSecretsForRepo: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/actions/secrets"
+ },
+ listSelfHostedRunnersForRepo: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/actions/runners"
+ },
+ listWorkflowJobLogs: {
+ method: "GET",
+ params: {
+ job_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/actions/jobs/:job_id/logs"
+ },
+ listWorkflowRunArtifacts: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ run_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/repos/:owner/:repo/actions/runs/:run_id/artifacts"
+ },
+ listWorkflowRunLogs: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ run_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/repos/:owner/:repo/actions/runs/:run_id/logs"
+ },
+ listWorkflowRuns: {
+ method: "GET",
+ params: {
+ actor: {
+ type: "string"
+ },
+ branch: {
+ type: "string"
+ },
+ event: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ status: {
+ enum: ["completed", "status", "conclusion"],
+ type: "string"
+ },
+ workflow_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/repos/:owner/:repo/actions/workflows/:workflow_id/runs"
+ },
+ reRunWorkflow: {
+ method: "POST",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ run_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/repos/:owner/:repo/actions/runs/:run_id/rerun"
+ },
+ removeSelfHostedRunner: {
+ method: "DELETE",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ runner_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/repos/:owner/:repo/actions/runners/:runner_id"
+ }
+ },
+ activity: {
+ checkStarringRepo: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/user/starred/:owner/:repo"
+ },
+ deleteRepoSubscription: {
+ method: "DELETE",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/subscription"
+ },
+ deleteThreadSubscription: {
+ method: "DELETE",
+ params: {
+ thread_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/notifications/threads/:thread_id/subscription"
+ },
+ getRepoSubscription: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/subscription"
+ },
+ getThread: {
+ method: "GET",
+ params: {
+ thread_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/notifications/threads/:thread_id"
+ },
+ getThreadSubscription: {
+ method: "GET",
+ params: {
+ thread_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/notifications/threads/:thread_id/subscription"
+ },
+ listEventsForOrg: {
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/users/:username/events/orgs/:org"
+ },
+ listEventsForUser: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/users/:username/events"
+ },
+ listFeeds: {
+ method: "GET",
+ params: {},
+ url: "/feeds"
+ },
+ listNotifications: {
+ method: "GET",
+ params: {
+ all: {
+ type: "boolean"
+ },
+ before: {
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ participating: {
+ type: "boolean"
+ },
+ per_page: {
+ type: "integer"
+ },
+ since: {
+ type: "string"
+ }
+ },
+ url: "/notifications"
+ },
+ listNotificationsForRepo: {
+ method: "GET",
+ params: {
+ all: {
+ type: "boolean"
+ },
+ before: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ participating: {
+ type: "boolean"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ since: {
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/notifications"
+ },
+ listPublicEvents: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/events"
+ },
+ listPublicEventsForOrg: {
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/orgs/:org/events"
+ },
+ listPublicEventsForRepoNetwork: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/networks/:owner/:repo/events"
+ },
+ listPublicEventsForUser: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/users/:username/events/public"
+ },
+ listReceivedEventsForUser: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/users/:username/received_events"
+ },
+ listReceivedPublicEventsForUser: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/users/:username/received_events/public"
+ },
+ listRepoEvents: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/events"
+ },
+ listReposStarredByAuthenticatedUser: {
+ method: "GET",
+ params: {
+ direction: {
+ enum: ["asc", "desc"],
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ sort: {
+ enum: ["created", "updated"],
+ type: "string"
+ }
+ },
+ url: "/user/starred"
+ },
+ listReposStarredByUser: {
+ method: "GET",
+ params: {
+ direction: {
+ enum: ["asc", "desc"],
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ sort: {
+ enum: ["created", "updated"],
+ type: "string"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/users/:username/starred"
+ },
+ listReposWatchedByUser: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/users/:username/subscriptions"
+ },
+ listStargazersForRepo: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/stargazers"
+ },
+ listWatchedReposForAuthenticatedUser: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/user/subscriptions"
+ },
+ listWatchersForRepo: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/subscribers"
+ },
+ markAsRead: {
+ method: "PUT",
+ params: {
+ last_read_at: {
+ type: "string"
+ }
+ },
+ url: "/notifications"
+ },
+ markNotificationsAsReadForRepo: {
+ method: "PUT",
+ params: {
+ last_read_at: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/notifications"
+ },
+ markThreadAsRead: {
+ method: "PATCH",
+ params: {
+ thread_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/notifications/threads/:thread_id"
+ },
+ setRepoSubscription: {
+ method: "PUT",
+ params: {
+ ignored: {
+ type: "boolean"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ subscribed: {
+ type: "boolean"
+ }
+ },
+ url: "/repos/:owner/:repo/subscription"
+ },
+ setThreadSubscription: {
+ method: "PUT",
+ params: {
+ ignored: {
+ type: "boolean"
+ },
+ thread_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/notifications/threads/:thread_id/subscription"
+ },
+ starRepo: {
+ method: "PUT",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/user/starred/:owner/:repo"
+ },
+ unstarRepo: {
+ method: "DELETE",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/user/starred/:owner/:repo"
+ }
+ },
+ apps: {
+ addRepoToInstallation: {
+ headers: {
+ accept: "application/vnd.github.machine-man-preview+json"
+ },
+ method: "PUT",
+ params: {
+ installation_id: {
+ required: true,
+ type: "integer"
+ },
+ repository_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/user/installations/:installation_id/repositories/:repository_id"
+ },
+ checkAccountIsAssociatedWithAny: {
+ method: "GET",
+ params: {
+ account_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/marketplace_listing/accounts/:account_id"
+ },
+ checkAccountIsAssociatedWithAnyStubbed: {
+ method: "GET",
+ params: {
+ account_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/marketplace_listing/stubbed/accounts/:account_id"
+ },
+ checkAuthorization: {
+ deprecated: "octokit.apps.checkAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization",
+ method: "GET",
+ params: {
+ access_token: {
+ required: true,
+ type: "string"
+ },
+ client_id: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/applications/:client_id/tokens/:access_token"
+ },
+ checkToken: {
+ headers: {
+ accept: "application/vnd.github.doctor-strange-preview+json"
+ },
+ method: "POST",
+ params: {
+ access_token: {
+ type: "string"
+ },
+ client_id: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/applications/:client_id/token"
+ },
+ createContentAttachment: {
+ headers: {
+ accept: "application/vnd.github.corsair-preview+json"
+ },
+ method: "POST",
+ params: {
+ body: {
+ required: true,
+ type: "string"
+ },
+ content_reference_id: {
+ required: true,
+ type: "integer"
+ },
+ title: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/content_references/:content_reference_id/attachments"
+ },
+ createFromManifest: {
+ headers: {
+ accept: "application/vnd.github.fury-preview+json"
+ },
+ method: "POST",
+ params: {
+ code: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/app-manifests/:code/conversions"
+ },
+ createInstallationToken: {
+ headers: {
+ accept: "application/vnd.github.machine-man-preview+json"
+ },
+ method: "POST",
+ params: {
+ installation_id: {
+ required: true,
+ type: "integer"
+ },
+ permissions: {
+ type: "object"
+ },
+ repository_ids: {
+ type: "integer[]"
+ }
+ },
+ url: "/app/installations/:installation_id/access_tokens"
+ },
+ deleteAuthorization: {
+ headers: {
+ accept: "application/vnd.github.doctor-strange-preview+json"
+ },
+ method: "DELETE",
+ params: {
+ access_token: {
+ type: "string"
+ },
+ client_id: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/applications/:client_id/grant"
+ },
+ deleteInstallation: {
+ headers: {
+ accept: "application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json"
+ },
+ method: "DELETE",
+ params: {
+ installation_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/app/installations/:installation_id"
+ },
+ deleteToken: {
+ headers: {
+ accept: "application/vnd.github.doctor-strange-preview+json"
+ },
+ method: "DELETE",
+ params: {
+ access_token: {
+ type: "string"
+ },
+ client_id: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/applications/:client_id/token"
+ },
+ findOrgInstallation: {
+ deprecated: "octokit.apps.findOrgInstallation() has been renamed to octokit.apps.getOrgInstallation() (2019-04-10)",
+ headers: {
+ accept: "application/vnd.github.machine-man-preview+json"
+ },
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/installation"
+ },
+ findRepoInstallation: {
+ deprecated: "octokit.apps.findRepoInstallation() has been renamed to octokit.apps.getRepoInstallation() (2019-04-10)",
+ headers: {
+ accept: "application/vnd.github.machine-man-preview+json"
+ },
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/installation"
+ },
+ findUserInstallation: {
+ deprecated: "octokit.apps.findUserInstallation() has been renamed to octokit.apps.getUserInstallation() (2019-04-10)",
+ headers: {
+ accept: "application/vnd.github.machine-man-preview+json"
+ },
+ method: "GET",
+ params: {
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/users/:username/installation"
+ },
+ getAuthenticated: {
+ headers: {
+ accept: "application/vnd.github.machine-man-preview+json"
+ },
+ method: "GET",
+ params: {},
+ url: "/app"
+ },
+ getBySlug: {
+ headers: {
+ accept: "application/vnd.github.machine-man-preview+json"
+ },
+ method: "GET",
+ params: {
+ app_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/apps/:app_slug"
+ },
+ getInstallation: {
+ headers: {
+ accept: "application/vnd.github.machine-man-preview+json"
+ },
+ method: "GET",
+ params: {
+ installation_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/app/installations/:installation_id"
+ },
+ getOrgInstallation: {
+ headers: {
+ accept: "application/vnd.github.machine-man-preview+json"
+ },
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/installation"
+ },
+ getRepoInstallation: {
+ headers: {
+ accept: "application/vnd.github.machine-man-preview+json"
+ },
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/installation"
+ },
+ getUserInstallation: {
+ headers: {
+ accept: "application/vnd.github.machine-man-preview+json"
+ },
+ method: "GET",
+ params: {
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/users/:username/installation"
+ },
+ listAccountsUserOrOrgOnPlan: {
+ method: "GET",
+ params: {
+ direction: {
+ enum: ["asc", "desc"],
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ plan_id: {
+ required: true,
+ type: "integer"
+ },
+ sort: {
+ enum: ["created", "updated"],
+ type: "string"
+ }
+ },
+ url: "/marketplace_listing/plans/:plan_id/accounts"
+ },
+ listAccountsUserOrOrgOnPlanStubbed: {
+ method: "GET",
+ params: {
+ direction: {
+ enum: ["asc", "desc"],
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ plan_id: {
+ required: true,
+ type: "integer"
+ },
+ sort: {
+ enum: ["created", "updated"],
+ type: "string"
+ }
+ },
+ url: "/marketplace_listing/stubbed/plans/:plan_id/accounts"
+ },
+ listInstallationReposForAuthenticatedUser: {
+ headers: {
+ accept: "application/vnd.github.machine-man-preview+json"
+ },
+ method: "GET",
+ params: {
+ installation_id: {
+ required: true,
+ type: "integer"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/user/installations/:installation_id/repositories"
+ },
+ listInstallations: {
+ headers: {
+ accept: "application/vnd.github.machine-man-preview+json"
+ },
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/app/installations"
+ },
+ listInstallationsForAuthenticatedUser: {
+ headers: {
+ accept: "application/vnd.github.machine-man-preview+json"
+ },
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/user/installations"
+ },
+ listMarketplacePurchasesForAuthenticatedUser: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/user/marketplace_purchases"
+ },
+ listMarketplacePurchasesForAuthenticatedUserStubbed: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/user/marketplace_purchases/stubbed"
+ },
+ listPlans: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/marketplace_listing/plans"
+ },
+ listPlansStubbed: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/marketplace_listing/stubbed/plans"
+ },
+ listRepos: {
+ headers: {
+ accept: "application/vnd.github.machine-man-preview+json"
+ },
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/installation/repositories"
+ },
+ removeRepoFromInstallation: {
+ headers: {
+ accept: "application/vnd.github.machine-man-preview+json"
+ },
+ method: "DELETE",
+ params: {
+ installation_id: {
+ required: true,
+ type: "integer"
+ },
+ repository_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/user/installations/:installation_id/repositories/:repository_id"
+ },
+ resetAuthorization: {
+ deprecated: "octokit.apps.resetAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization",
+ method: "POST",
+ params: {
+ access_token: {
+ required: true,
+ type: "string"
+ },
+ client_id: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/applications/:client_id/tokens/:access_token"
+ },
+ resetToken: {
+ headers: {
+ accept: "application/vnd.github.doctor-strange-preview+json"
+ },
+ method: "PATCH",
+ params: {
+ access_token: {
+ type: "string"
+ },
+ client_id: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/applications/:client_id/token"
+ },
+ revokeAuthorizationForApplication: {
+ deprecated: "octokit.apps.revokeAuthorizationForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application",
+ method: "DELETE",
+ params: {
+ access_token: {
+ required: true,
+ type: "string"
+ },
+ client_id: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/applications/:client_id/tokens/:access_token"
+ },
+ revokeGrantForApplication: {
+ deprecated: "octokit.apps.revokeGrantForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application",
+ method: "DELETE",
+ params: {
+ access_token: {
+ required: true,
+ type: "string"
+ },
+ client_id: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/applications/:client_id/grants/:access_token"
+ },
+ revokeInstallationToken: {
+ headers: {
+ accept: "application/vnd.github.gambit-preview+json"
+ },
+ method: "DELETE",
+ params: {},
+ url: "/installation/token"
+ }
+ },
+ checks: {
+ create: {
+ headers: {
+ accept: "application/vnd.github.antiope-preview+json"
+ },
+ method: "POST",
+ params: {
+ actions: {
+ type: "object[]"
+ },
+ "actions[].description": {
+ required: true,
+ type: "string"
+ },
+ "actions[].identifier": {
+ required: true,
+ type: "string"
+ },
+ "actions[].label": {
+ required: true,
+ type: "string"
+ },
+ completed_at: {
+ type: "string"
+ },
+ conclusion: {
+ enum: ["success", "failure", "neutral", "cancelled", "timed_out", "action_required"],
+ type: "string"
+ },
+ details_url: {
+ type: "string"
+ },
+ external_id: {
+ type: "string"
+ },
+ head_sha: {
+ required: true,
+ type: "string"
+ },
+ name: {
+ required: true,
+ type: "string"
+ },
+ output: {
+ type: "object"
+ },
+ "output.annotations": {
+ type: "object[]"
+ },
+ "output.annotations[].annotation_level": {
+ enum: ["notice", "warning", "failure"],
+ required: true,
+ type: "string"
+ },
+ "output.annotations[].end_column": {
+ type: "integer"
+ },
+ "output.annotations[].end_line": {
+ required: true,
+ type: "integer"
+ },
+ "output.annotations[].message": {
+ required: true,
+ type: "string"
+ },
+ "output.annotations[].path": {
+ required: true,
+ type: "string"
+ },
+ "output.annotations[].raw_details": {
+ type: "string"
+ },
+ "output.annotations[].start_column": {
+ type: "integer"
+ },
+ "output.annotations[].start_line": {
+ required: true,
+ type: "integer"
+ },
+ "output.annotations[].title": {
+ type: "string"
+ },
+ "output.images": {
+ type: "object[]"
+ },
+ "output.images[].alt": {
+ required: true,
+ type: "string"
+ },
+ "output.images[].caption": {
+ type: "string"
+ },
+ "output.images[].image_url": {
+ required: true,
+ type: "string"
+ },
+ "output.summary": {
+ required: true,
+ type: "string"
+ },
+ "output.text": {
+ type: "string"
+ },
+ "output.title": {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ started_at: {
+ type: "string"
+ },
+ status: {
+ enum: ["queued", "in_progress", "completed"],
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/check-runs"
+ },
+ createSuite: {
+ headers: {
+ accept: "application/vnd.github.antiope-preview+json"
+ },
+ method: "POST",
+ params: {
+ head_sha: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/check-suites"
+ },
+ get: {
+ headers: {
+ accept: "application/vnd.github.antiope-preview+json"
+ },
+ method: "GET",
+ params: {
+ check_run_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/check-runs/:check_run_id"
+ },
+ getSuite: {
+ headers: {
+ accept: "application/vnd.github.antiope-preview+json"
+ },
+ method: "GET",
+ params: {
+ check_suite_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/check-suites/:check_suite_id"
+ },
+ listAnnotations: {
+ headers: {
+ accept: "application/vnd.github.antiope-preview+json"
+ },
+ method: "GET",
+ params: {
+ check_run_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/check-runs/:check_run_id/annotations"
+ },
+ listForRef: {
+ headers: {
+ accept: "application/vnd.github.antiope-preview+json"
+ },
+ method: "GET",
+ params: {
+ check_name: {
+ type: "string"
+ },
+ filter: {
+ enum: ["latest", "all"],
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ ref: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ status: {
+ enum: ["queued", "in_progress", "completed"],
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/commits/:ref/check-runs"
+ },
+ listForSuite: {
+ headers: {
+ accept: "application/vnd.github.antiope-preview+json"
+ },
+ method: "GET",
+ params: {
+ check_name: {
+ type: "string"
+ },
+ check_suite_id: {
+ required: true,
+ type: "integer"
+ },
+ filter: {
+ enum: ["latest", "all"],
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ status: {
+ enum: ["queued", "in_progress", "completed"],
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/check-suites/:check_suite_id/check-runs"
+ },
+ listSuitesForRef: {
+ headers: {
+ accept: "application/vnd.github.antiope-preview+json"
+ },
+ method: "GET",
+ params: {
+ app_id: {
+ type: "integer"
+ },
+ check_name: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ ref: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/commits/:ref/check-suites"
+ },
+ rerequestSuite: {
+ headers: {
+ accept: "application/vnd.github.antiope-preview+json"
+ },
+ method: "POST",
+ params: {
+ check_suite_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/check-suites/:check_suite_id/rerequest"
+ },
+ setSuitesPreferences: {
+ headers: {
+ accept: "application/vnd.github.antiope-preview+json"
+ },
+ method: "PATCH",
+ params: {
+ auto_trigger_checks: {
+ type: "object[]"
+ },
+ "auto_trigger_checks[].app_id": {
+ required: true,
+ type: "integer"
+ },
+ "auto_trigger_checks[].setting": {
+ required: true,
+ type: "boolean"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/check-suites/preferences"
+ },
+ update: {
+ headers: {
+ accept: "application/vnd.github.antiope-preview+json"
+ },
+ method: "PATCH",
+ params: {
+ actions: {
+ type: "object[]"
+ },
+ "actions[].description": {
+ required: true,
+ type: "string"
+ },
+ "actions[].identifier": {
+ required: true,
+ type: "string"
+ },
+ "actions[].label": {
+ required: true,
+ type: "string"
+ },
+ check_run_id: {
+ required: true,
+ type: "integer"
+ },
+ completed_at: {
+ type: "string"
+ },
+ conclusion: {
+ enum: ["success", "failure", "neutral", "cancelled", "timed_out", "action_required"],
+ type: "string"
+ },
+ details_url: {
+ type: "string"
+ },
+ external_id: {
+ type: "string"
+ },
+ name: {
+ type: "string"
+ },
+ output: {
+ type: "object"
+ },
+ "output.annotations": {
+ type: "object[]"
+ },
+ "output.annotations[].annotation_level": {
+ enum: ["notice", "warning", "failure"],
+ required: true,
+ type: "string"
+ },
+ "output.annotations[].end_column": {
+ type: "integer"
+ },
+ "output.annotations[].end_line": {
+ required: true,
+ type: "integer"
+ },
+ "output.annotations[].message": {
+ required: true,
+ type: "string"
+ },
+ "output.annotations[].path": {
+ required: true,
+ type: "string"
+ },
+ "output.annotations[].raw_details": {
+ type: "string"
+ },
+ "output.annotations[].start_column": {
+ type: "integer"
+ },
+ "output.annotations[].start_line": {
+ required: true,
+ type: "integer"
+ },
+ "output.annotations[].title": {
+ type: "string"
+ },
+ "output.images": {
+ type: "object[]"
+ },
+ "output.images[].alt": {
+ required: true,
+ type: "string"
+ },
+ "output.images[].caption": {
+ type: "string"
+ },
+ "output.images[].image_url": {
+ required: true,
+ type: "string"
+ },
+ "output.summary": {
+ required: true,
+ type: "string"
+ },
+ "output.text": {
+ type: "string"
+ },
+ "output.title": {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ started_at: {
+ type: "string"
+ },
+ status: {
+ enum: ["queued", "in_progress", "completed"],
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/check-runs/:check_run_id"
+ }
+ },
+ codesOfConduct: {
+ getConductCode: {
+ headers: {
+ accept: "application/vnd.github.scarlet-witch-preview+json"
+ },
+ method: "GET",
+ params: {
+ key: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/codes_of_conduct/:key"
+ },
+ getForRepo: {
+ headers: {
+ accept: "application/vnd.github.scarlet-witch-preview+json"
+ },
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/community/code_of_conduct"
+ },
+ listConductCodes: {
+ headers: {
+ accept: "application/vnd.github.scarlet-witch-preview+json"
+ },
+ method: "GET",
+ params: {},
+ url: "/codes_of_conduct"
+ }
+ },
+ emojis: {
+ get: {
+ method: "GET",
+ params: {},
+ url: "/emojis"
+ }
+ },
+ gists: {
+ checkIsStarred: {
+ method: "GET",
+ params: {
+ gist_id: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/gists/:gist_id/star"
+ },
+ create: {
+ method: "POST",
+ params: {
+ description: {
+ type: "string"
+ },
+ files: {
+ required: true,
+ type: "object"
+ },
+ "files.content": {
+ type: "string"
+ },
+ public: {
+ type: "boolean"
+ }
+ },
+ url: "/gists"
+ },
+ createComment: {
+ method: "POST",
+ params: {
+ body: {
+ required: true,
+ type: "string"
+ },
+ gist_id: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/gists/:gist_id/comments"
+ },
+ delete: {
+ method: "DELETE",
+ params: {
+ gist_id: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/gists/:gist_id"
+ },
+ deleteComment: {
+ method: "DELETE",
+ params: {
+ comment_id: {
+ required: true,
+ type: "integer"
+ },
+ gist_id: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/gists/:gist_id/comments/:comment_id"
+ },
+ fork: {
+ method: "POST",
+ params: {
+ gist_id: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/gists/:gist_id/forks"
+ },
+ get: {
+ method: "GET",
+ params: {
+ gist_id: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/gists/:gist_id"
+ },
+ getComment: {
+ method: "GET",
+ params: {
+ comment_id: {
+ required: true,
+ type: "integer"
+ },
+ gist_id: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/gists/:gist_id/comments/:comment_id"
+ },
+ getRevision: {
+ method: "GET",
+ params: {
+ gist_id: {
+ required: true,
+ type: "string"
+ },
+ sha: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/gists/:gist_id/:sha"
+ },
+ list: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ since: {
+ type: "string"
+ }
+ },
+ url: "/gists"
+ },
+ listComments: {
+ method: "GET",
+ params: {
+ gist_id: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/gists/:gist_id/comments"
+ },
+ listCommits: {
+ method: "GET",
+ params: {
+ gist_id: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/gists/:gist_id/commits"
+ },
+ listForks: {
+ method: "GET",
+ params: {
+ gist_id: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/gists/:gist_id/forks"
+ },
+ listPublic: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ since: {
+ type: "string"
+ }
+ },
+ url: "/gists/public"
+ },
+ listPublicForUser: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ since: {
+ type: "string"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/users/:username/gists"
+ },
+ listStarred: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ since: {
+ type: "string"
+ }
+ },
+ url: "/gists/starred"
+ },
+ star: {
+ method: "PUT",
+ params: {
+ gist_id: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/gists/:gist_id/star"
+ },
+ unstar: {
+ method: "DELETE",
+ params: {
+ gist_id: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/gists/:gist_id/star"
+ },
+ update: {
+ method: "PATCH",
+ params: {
+ description: {
+ type: "string"
+ },
+ files: {
+ type: "object"
+ },
+ "files.content": {
+ type: "string"
+ },
+ "files.filename": {
+ type: "string"
+ },
+ gist_id: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/gists/:gist_id"
+ },
+ updateComment: {
+ method: "PATCH",
+ params: {
+ body: {
+ required: true,
+ type: "string"
+ },
+ comment_id: {
+ required: true,
+ type: "integer"
+ },
+ gist_id: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/gists/:gist_id/comments/:comment_id"
+ }
+ },
+ git: {
+ createBlob: {
+ method: "POST",
+ params: {
+ content: {
+ required: true,
+ type: "string"
+ },
+ encoding: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/git/blobs"
+ },
+ createCommit: {
+ method: "POST",
+ params: {
+ author: {
+ type: "object"
+ },
+ "author.date": {
+ type: "string"
+ },
+ "author.email": {
+ type: "string"
+ },
+ "author.name": {
+ type: "string"
+ },
+ committer: {
+ type: "object"
+ },
+ "committer.date": {
+ type: "string"
+ },
+ "committer.email": {
+ type: "string"
+ },
+ "committer.name": {
+ type: "string"
+ },
+ message: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ parents: {
+ required: true,
+ type: "string[]"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ signature: {
+ type: "string"
+ },
+ tree: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/git/commits"
+ },
+ createRef: {
+ method: "POST",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ ref: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ sha: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/git/refs"
+ },
+ createTag: {
+ method: "POST",
+ params: {
+ message: {
+ required: true,
+ type: "string"
+ },
+ object: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ tag: {
+ required: true,
+ type: "string"
+ },
+ tagger: {
+ type: "object"
+ },
+ "tagger.date": {
+ type: "string"
+ },
+ "tagger.email": {
+ type: "string"
+ },
+ "tagger.name": {
+ type: "string"
+ },
+ type: {
+ enum: ["commit", "tree", "blob"],
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/git/tags"
+ },
+ createTree: {
+ method: "POST",
+ params: {
+ base_tree: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ tree: {
+ required: true,
+ type: "object[]"
+ },
+ "tree[].content": {
+ type: "string"
+ },
+ "tree[].mode": {
+ enum: ["100644", "100755", "040000", "160000", "120000"],
+ type: "string"
+ },
+ "tree[].path": {
+ type: "string"
+ },
+ "tree[].sha": {
+ allowNull: true,
+ type: "string"
+ },
+ "tree[].type": {
+ enum: ["blob", "tree", "commit"],
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/git/trees"
+ },
+ deleteRef: {
+ method: "DELETE",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ ref: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/git/refs/:ref"
+ },
+ getBlob: {
+ method: "GET",
+ params: {
+ file_sha: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/git/blobs/:file_sha"
+ },
+ getCommit: {
+ method: "GET",
+ params: {
+ commit_sha: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/git/commits/:commit_sha"
+ },
+ getRef: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ ref: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/git/ref/:ref"
+ },
+ getTag: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ tag_sha: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/git/tags/:tag_sha"
+ },
+ getTree: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ recursive: {
+ enum: ["1"],
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ tree_sha: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/git/trees/:tree_sha"
+ },
+ listMatchingRefs: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ ref: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/git/matching-refs/:ref"
+ },
+ listRefs: {
+ method: "GET",
+ params: {
+ namespace: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/git/refs/:namespace"
+ },
+ updateRef: {
+ method: "PATCH",
+ params: {
+ force: {
+ type: "boolean"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ ref: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ sha: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/git/refs/:ref"
+ }
+ },
+ gitignore: {
+ getTemplate: {
+ method: "GET",
+ params: {
+ name: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/gitignore/templates/:name"
+ },
+ listTemplates: {
+ method: "GET",
+ params: {},
+ url: "/gitignore/templates"
+ }
+ },
+ interactions: {
+ addOrUpdateRestrictionsForOrg: {
+ headers: {
+ accept: "application/vnd.github.sombra-preview+json"
+ },
+ method: "PUT",
+ params: {
+ limit: {
+ enum: ["existing_users", "contributors_only", "collaborators_only"],
+ required: true,
+ type: "string"
+ },
+ org: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/interaction-limits"
+ },
+ addOrUpdateRestrictionsForRepo: {
+ headers: {
+ accept: "application/vnd.github.sombra-preview+json"
+ },
+ method: "PUT",
+ params: {
+ limit: {
+ enum: ["existing_users", "contributors_only", "collaborators_only"],
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/interaction-limits"
+ },
+ getRestrictionsForOrg: {
+ headers: {
+ accept: "application/vnd.github.sombra-preview+json"
+ },
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/interaction-limits"
+ },
+ getRestrictionsForRepo: {
+ headers: {
+ accept: "application/vnd.github.sombra-preview+json"
+ },
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/interaction-limits"
+ },
+ removeRestrictionsForOrg: {
+ headers: {
+ accept: "application/vnd.github.sombra-preview+json"
+ },
+ method: "DELETE",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/interaction-limits"
+ },
+ removeRestrictionsForRepo: {
+ headers: {
+ accept: "application/vnd.github.sombra-preview+json"
+ },
+ method: "DELETE",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/interaction-limits"
+ }
+ },
+ issues: {
+ addAssignees: {
+ method: "POST",
+ params: {
+ assignees: {
+ type: "string[]"
+ },
+ issue_number: {
+ required: true,
+ type: "integer"
+ },
+ number: {
+ alias: "issue_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues/:issue_number/assignees"
+ },
+ addLabels: {
+ method: "POST",
+ params: {
+ issue_number: {
+ required: true,
+ type: "integer"
+ },
+ labels: {
+ required: true,
+ type: "string[]"
+ },
+ number: {
+ alias: "issue_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues/:issue_number/labels"
+ },
+ checkAssignee: {
+ method: "GET",
+ params: {
+ assignee: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/assignees/:assignee"
+ },
+ create: {
+ method: "POST",
+ params: {
+ assignee: {
+ type: "string"
+ },
+ assignees: {
+ type: "string[]"
+ },
+ body: {
+ type: "string"
+ },
+ labels: {
+ type: "string[]"
+ },
+ milestone: {
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ title: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues"
+ },
+ createComment: {
+ method: "POST",
+ params: {
+ body: {
+ required: true,
+ type: "string"
+ },
+ issue_number: {
+ required: true,
+ type: "integer"
+ },
+ number: {
+ alias: "issue_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues/:issue_number/comments"
+ },
+ createLabel: {
+ method: "POST",
+ params: {
+ color: {
+ required: true,
+ type: "string"
+ },
+ description: {
+ type: "string"
+ },
+ name: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/labels"
+ },
+ createMilestone: {
+ method: "POST",
+ params: {
+ description: {
+ type: "string"
+ },
+ due_on: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ state: {
+ enum: ["open", "closed"],
+ type: "string"
+ },
+ title: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/milestones"
+ },
+ deleteComment: {
+ method: "DELETE",
+ params: {
+ comment_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues/comments/:comment_id"
+ },
+ deleteLabel: {
+ method: "DELETE",
+ params: {
+ name: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/labels/:name"
+ },
+ deleteMilestone: {
+ method: "DELETE",
+ params: {
+ milestone_number: {
+ required: true,
+ type: "integer"
+ },
+ number: {
+ alias: "milestone_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/milestones/:milestone_number"
+ },
+ get: {
+ method: "GET",
+ params: {
+ issue_number: {
+ required: true,
+ type: "integer"
+ },
+ number: {
+ alias: "issue_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues/:issue_number"
+ },
+ getComment: {
+ method: "GET",
+ params: {
+ comment_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues/comments/:comment_id"
+ },
+ getEvent: {
+ method: "GET",
+ params: {
+ event_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues/events/:event_id"
+ },
+ getLabel: {
+ method: "GET",
+ params: {
+ name: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/labels/:name"
+ },
+ getMilestone: {
+ method: "GET",
+ params: {
+ milestone_number: {
+ required: true,
+ type: "integer"
+ },
+ number: {
+ alias: "milestone_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/milestones/:milestone_number"
+ },
+ list: {
+ method: "GET",
+ params: {
+ direction: {
+ enum: ["asc", "desc"],
+ type: "string"
+ },
+ filter: {
+ enum: ["assigned", "created", "mentioned", "subscribed", "all"],
+ type: "string"
+ },
+ labels: {
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ since: {
+ type: "string"
+ },
+ sort: {
+ enum: ["created", "updated", "comments"],
+ type: "string"
+ },
+ state: {
+ enum: ["open", "closed", "all"],
+ type: "string"
+ }
+ },
+ url: "/issues"
+ },
+ listAssignees: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/assignees"
+ },
+ listComments: {
+ method: "GET",
+ params: {
+ issue_number: {
+ required: true,
+ type: "integer"
+ },
+ number: {
+ alias: "issue_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ since: {
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues/:issue_number/comments"
+ },
+ listCommentsForRepo: {
+ method: "GET",
+ params: {
+ direction: {
+ enum: ["asc", "desc"],
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ since: {
+ type: "string"
+ },
+ sort: {
+ enum: ["created", "updated"],
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues/comments"
+ },
+ listEvents: {
+ method: "GET",
+ params: {
+ issue_number: {
+ required: true,
+ type: "integer"
+ },
+ number: {
+ alias: "issue_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues/:issue_number/events"
+ },
+ listEventsForRepo: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues/events"
+ },
+ listEventsForTimeline: {
+ headers: {
+ accept: "application/vnd.github.mockingbird-preview+json"
+ },
+ method: "GET",
+ params: {
+ issue_number: {
+ required: true,
+ type: "integer"
+ },
+ number: {
+ alias: "issue_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues/:issue_number/timeline"
+ },
+ listForAuthenticatedUser: {
+ method: "GET",
+ params: {
+ direction: {
+ enum: ["asc", "desc"],
+ type: "string"
+ },
+ filter: {
+ enum: ["assigned", "created", "mentioned", "subscribed", "all"],
+ type: "string"
+ },
+ labels: {
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ since: {
+ type: "string"
+ },
+ sort: {
+ enum: ["created", "updated", "comments"],
+ type: "string"
+ },
+ state: {
+ enum: ["open", "closed", "all"],
+ type: "string"
+ }
+ },
+ url: "/user/issues"
+ },
+ listForOrg: {
+ method: "GET",
+ params: {
+ direction: {
+ enum: ["asc", "desc"],
+ type: "string"
+ },
+ filter: {
+ enum: ["assigned", "created", "mentioned", "subscribed", "all"],
+ type: "string"
+ },
+ labels: {
+ type: "string"
+ },
+ org: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ since: {
+ type: "string"
+ },
+ sort: {
+ enum: ["created", "updated", "comments"],
+ type: "string"
+ },
+ state: {
+ enum: ["open", "closed", "all"],
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/issues"
+ },
+ listForRepo: {
+ method: "GET",
+ params: {
+ assignee: {
+ type: "string"
+ },
+ creator: {
+ type: "string"
+ },
+ direction: {
+ enum: ["asc", "desc"],
+ type: "string"
+ },
+ labels: {
+ type: "string"
+ },
+ mentioned: {
+ type: "string"
+ },
+ milestone: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ since: {
+ type: "string"
+ },
+ sort: {
+ enum: ["created", "updated", "comments"],
+ type: "string"
+ },
+ state: {
+ enum: ["open", "closed", "all"],
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues"
+ },
+ listLabelsForMilestone: {
+ method: "GET",
+ params: {
+ milestone_number: {
+ required: true,
+ type: "integer"
+ },
+ number: {
+ alias: "milestone_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/milestones/:milestone_number/labels"
+ },
+ listLabelsForRepo: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/labels"
+ },
+ listLabelsOnIssue: {
+ method: "GET",
+ params: {
+ issue_number: {
+ required: true,
+ type: "integer"
+ },
+ number: {
+ alias: "issue_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues/:issue_number/labels"
+ },
+ listMilestonesForRepo: {
+ method: "GET",
+ params: {
+ direction: {
+ enum: ["asc", "desc"],
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ sort: {
+ enum: ["due_on", "completeness"],
+ type: "string"
+ },
+ state: {
+ enum: ["open", "closed", "all"],
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/milestones"
+ },
+ lock: {
+ method: "PUT",
+ params: {
+ issue_number: {
+ required: true,
+ type: "integer"
+ },
+ lock_reason: {
+ enum: ["off-topic", "too heated", "resolved", "spam"],
+ type: "string"
+ },
+ number: {
+ alias: "issue_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues/:issue_number/lock"
+ },
+ removeAssignees: {
+ method: "DELETE",
+ params: {
+ assignees: {
+ type: "string[]"
+ },
+ issue_number: {
+ required: true,
+ type: "integer"
+ },
+ number: {
+ alias: "issue_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues/:issue_number/assignees"
+ },
+ removeLabel: {
+ method: "DELETE",
+ params: {
+ issue_number: {
+ required: true,
+ type: "integer"
+ },
+ name: {
+ required: true,
+ type: "string"
+ },
+ number: {
+ alias: "issue_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues/:issue_number/labels/:name"
+ },
+ removeLabels: {
+ method: "DELETE",
+ params: {
+ issue_number: {
+ required: true,
+ type: "integer"
+ },
+ number: {
+ alias: "issue_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues/:issue_number/labels"
+ },
+ replaceLabels: {
+ method: "PUT",
+ params: {
+ issue_number: {
+ required: true,
+ type: "integer"
+ },
+ labels: {
+ type: "string[]"
+ },
+ number: {
+ alias: "issue_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues/:issue_number/labels"
+ },
+ unlock: {
+ method: "DELETE",
+ params: {
+ issue_number: {
+ required: true,
+ type: "integer"
+ },
+ number: {
+ alias: "issue_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues/:issue_number/lock"
+ },
+ update: {
+ method: "PATCH",
+ params: {
+ assignee: {
+ type: "string"
+ },
+ assignees: {
+ type: "string[]"
+ },
+ body: {
+ type: "string"
+ },
+ issue_number: {
+ required: true,
+ type: "integer"
+ },
+ labels: {
+ type: "string[]"
+ },
+ milestone: {
+ allowNull: true,
+ type: "integer"
+ },
+ number: {
+ alias: "issue_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ state: {
+ enum: ["open", "closed"],
+ type: "string"
+ },
+ title: {
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues/:issue_number"
+ },
+ updateComment: {
+ method: "PATCH",
+ params: {
+ body: {
+ required: true,
+ type: "string"
+ },
+ comment_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues/comments/:comment_id"
+ },
+ updateLabel: {
+ method: "PATCH",
+ params: {
+ color: {
+ type: "string"
+ },
+ current_name: {
+ required: true,
+ type: "string"
+ },
+ description: {
+ type: "string"
+ },
+ name: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/labels/:current_name"
+ },
+ updateMilestone: {
+ method: "PATCH",
+ params: {
+ description: {
+ type: "string"
+ },
+ due_on: {
+ type: "string"
+ },
+ milestone_number: {
+ required: true,
+ type: "integer"
+ },
+ number: {
+ alias: "milestone_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ state: {
+ enum: ["open", "closed"],
+ type: "string"
+ },
+ title: {
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/milestones/:milestone_number"
+ }
+ },
+ licenses: {
+ get: {
+ method: "GET",
+ params: {
+ license: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/licenses/:license"
+ },
+ getForRepo: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/license"
+ },
+ list: {
+ deprecated: "octokit.licenses.list() has been renamed to octokit.licenses.listCommonlyUsed() (2019-03-05)",
+ method: "GET",
+ params: {},
+ url: "/licenses"
+ },
+ listCommonlyUsed: {
+ method: "GET",
+ params: {},
+ url: "/licenses"
+ }
+ },
+ markdown: {
+ render: {
+ method: "POST",
+ params: {
+ context: {
+ type: "string"
+ },
+ mode: {
+ enum: ["markdown", "gfm"],
+ type: "string"
+ },
+ text: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/markdown"
+ },
+ renderRaw: {
+ headers: {
+ "content-type": "text/plain; charset=utf-8"
+ },
+ method: "POST",
+ params: {
+ data: {
+ mapTo: "data",
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/markdown/raw"
+ }
+ },
+ meta: {
+ get: {
+ method: "GET",
+ params: {},
+ url: "/meta"
+ }
+ },
+ migrations: {
+ cancelImport: {
+ method: "DELETE",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/import"
+ },
+ deleteArchiveForAuthenticatedUser: {
+ headers: {
+ accept: "application/vnd.github.wyandotte-preview+json"
+ },
+ method: "DELETE",
+ params: {
+ migration_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/user/migrations/:migration_id/archive"
+ },
+ deleteArchiveForOrg: {
+ headers: {
+ accept: "application/vnd.github.wyandotte-preview+json"
+ },
+ method: "DELETE",
+ params: {
+ migration_id: {
+ required: true,
+ type: "integer"
+ },
+ org: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/migrations/:migration_id/archive"
+ },
+ downloadArchiveForOrg: {
+ headers: {
+ accept: "application/vnd.github.wyandotte-preview+json"
+ },
+ method: "GET",
+ params: {
+ migration_id: {
+ required: true,
+ type: "integer"
+ },
+ org: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/migrations/:migration_id/archive"
+ },
+ getArchiveForAuthenticatedUser: {
+ headers: {
+ accept: "application/vnd.github.wyandotte-preview+json"
+ },
+ method: "GET",
+ params: {
+ migration_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/user/migrations/:migration_id/archive"
+ },
+ getArchiveForOrg: {
+ deprecated: "octokit.migrations.getArchiveForOrg() has been renamed to octokit.migrations.downloadArchiveForOrg() (2020-01-27)",
+ headers: {
+ accept: "application/vnd.github.wyandotte-preview+json"
+ },
+ method: "GET",
+ params: {
+ migration_id: {
+ required: true,
+ type: "integer"
+ },
+ org: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/migrations/:migration_id/archive"
+ },
+ getCommitAuthors: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ since: {
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/import/authors"
+ },
+ getImportProgress: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/import"
+ },
+ getLargeFiles: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/import/large_files"
+ },
+ getStatusForAuthenticatedUser: {
+ headers: {
+ accept: "application/vnd.github.wyandotte-preview+json"
+ },
+ method: "GET",
+ params: {
+ migration_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/user/migrations/:migration_id"
+ },
+ getStatusForOrg: {
+ headers: {
+ accept: "application/vnd.github.wyandotte-preview+json"
+ },
+ method: "GET",
+ params: {
+ migration_id: {
+ required: true,
+ type: "integer"
+ },
+ org: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/migrations/:migration_id"
+ },
+ listForAuthenticatedUser: {
+ headers: {
+ accept: "application/vnd.github.wyandotte-preview+json"
+ },
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/user/migrations"
+ },
+ listForOrg: {
+ headers: {
+ accept: "application/vnd.github.wyandotte-preview+json"
+ },
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/orgs/:org/migrations"
+ },
+ listReposForOrg: {
+ headers: {
+ accept: "application/vnd.github.wyandotte-preview+json"
+ },
+ method: "GET",
+ params: {
+ migration_id: {
+ required: true,
+ type: "integer"
+ },
+ org: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/orgs/:org/migrations/:migration_id/repositories"
+ },
+ listReposForUser: {
+ headers: {
+ accept: "application/vnd.github.wyandotte-preview+json"
+ },
+ method: "GET",
+ params: {
+ migration_id: {
+ required: true,
+ type: "integer"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/user/:migration_id/repositories"
+ },
+ mapCommitAuthor: {
+ method: "PATCH",
+ params: {
+ author_id: {
+ required: true,
+ type: "integer"
+ },
+ email: {
+ type: "string"
+ },
+ name: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/import/authors/:author_id"
+ },
+ setLfsPreference: {
+ method: "PATCH",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ use_lfs: {
+ enum: ["opt_in", "opt_out"],
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/import/lfs"
+ },
+ startForAuthenticatedUser: {
+ method: "POST",
+ params: {
+ exclude_attachments: {
+ type: "boolean"
+ },
+ lock_repositories: {
+ type: "boolean"
+ },
+ repositories: {
+ required: true,
+ type: "string[]"
+ }
+ },
+ url: "/user/migrations"
+ },
+ startForOrg: {
+ method: "POST",
+ params: {
+ exclude_attachments: {
+ type: "boolean"
+ },
+ lock_repositories: {
+ type: "boolean"
+ },
+ org: {
+ required: true,
+ type: "string"
+ },
+ repositories: {
+ required: true,
+ type: "string[]"
+ }
+ },
+ url: "/orgs/:org/migrations"
+ },
+ startImport: {
+ method: "PUT",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ tfvc_project: {
+ type: "string"
+ },
+ vcs: {
+ enum: ["subversion", "git", "mercurial", "tfvc"],
+ type: "string"
+ },
+ vcs_password: {
+ type: "string"
+ },
+ vcs_url: {
+ required: true,
+ type: "string"
+ },
+ vcs_username: {
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/import"
+ },
+ unlockRepoForAuthenticatedUser: {
+ headers: {
+ accept: "application/vnd.github.wyandotte-preview+json"
+ },
+ method: "DELETE",
+ params: {
+ migration_id: {
+ required: true,
+ type: "integer"
+ },
+ repo_name: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/user/migrations/:migration_id/repos/:repo_name/lock"
+ },
+ unlockRepoForOrg: {
+ headers: {
+ accept: "application/vnd.github.wyandotte-preview+json"
+ },
+ method: "DELETE",
+ params: {
+ migration_id: {
+ required: true,
+ type: "integer"
+ },
+ org: {
+ required: true,
+ type: "string"
+ },
+ repo_name: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/migrations/:migration_id/repos/:repo_name/lock"
+ },
+ updateImport: {
+ method: "PATCH",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ vcs_password: {
+ type: "string"
+ },
+ vcs_username: {
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/import"
+ }
+ },
+ oauthAuthorizations: {
+ checkAuthorization: {
+ deprecated: "octokit.oauthAuthorizations.checkAuthorization() has been renamed to octokit.apps.checkAuthorization() (2019-11-05)",
+ method: "GET",
+ params: {
+ access_token: {
+ required: true,
+ type: "string"
+ },
+ client_id: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/applications/:client_id/tokens/:access_token"
+ },
+ createAuthorization: {
+ deprecated: "octokit.oauthAuthorizations.createAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization",
+ method: "POST",
+ params: {
+ client_id: {
+ type: "string"
+ },
+ client_secret: {
+ type: "string"
+ },
+ fingerprint: {
+ type: "string"
+ },
+ note: {
+ required: true,
+ type: "string"
+ },
+ note_url: {
+ type: "string"
+ },
+ scopes: {
+ type: "string[]"
+ }
+ },
+ url: "/authorizations"
+ },
+ deleteAuthorization: {
+ deprecated: "octokit.oauthAuthorizations.deleteAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization",
+ method: "DELETE",
+ params: {
+ authorization_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/authorizations/:authorization_id"
+ },
+ deleteGrant: {
+ deprecated: "octokit.oauthAuthorizations.deleteGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant",
+ method: "DELETE",
+ params: {
+ grant_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/applications/grants/:grant_id"
+ },
+ getAuthorization: {
+ deprecated: "octokit.oauthAuthorizations.getAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization",
+ method: "GET",
+ params: {
+ authorization_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/authorizations/:authorization_id"
+ },
+ getGrant: {
+ deprecated: "octokit.oauthAuthorizations.getGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant",
+ method: "GET",
+ params: {
+ grant_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/applications/grants/:grant_id"
+ },
+ getOrCreateAuthorizationForApp: {
+ deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForApp() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app",
+ method: "PUT",
+ params: {
+ client_id: {
+ required: true,
+ type: "string"
+ },
+ client_secret: {
+ required: true,
+ type: "string"
+ },
+ fingerprint: {
+ type: "string"
+ },
+ note: {
+ type: "string"
+ },
+ note_url: {
+ type: "string"
+ },
+ scopes: {
+ type: "string[]"
+ }
+ },
+ url: "/authorizations/clients/:client_id"
+ },
+ getOrCreateAuthorizationForAppAndFingerprint: {
+ deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint",
+ method: "PUT",
+ params: {
+ client_id: {
+ required: true,
+ type: "string"
+ },
+ client_secret: {
+ required: true,
+ type: "string"
+ },
+ fingerprint: {
+ required: true,
+ type: "string"
+ },
+ note: {
+ type: "string"
+ },
+ note_url: {
+ type: "string"
+ },
+ scopes: {
+ type: "string[]"
+ }
+ },
+ url: "/authorizations/clients/:client_id/:fingerprint"
+ },
+ getOrCreateAuthorizationForAppFingerprint: {
+ deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint() has been renamed to octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() (2018-12-27)",
+ method: "PUT",
+ params: {
+ client_id: {
+ required: true,
+ type: "string"
+ },
+ client_secret: {
+ required: true,
+ type: "string"
+ },
+ fingerprint: {
+ required: true,
+ type: "string"
+ },
+ note: {
+ type: "string"
+ },
+ note_url: {
+ type: "string"
+ },
+ scopes: {
+ type: "string[]"
+ }
+ },
+ url: "/authorizations/clients/:client_id/:fingerprint"
+ },
+ listAuthorizations: {
+ deprecated: "octokit.oauthAuthorizations.listAuthorizations() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations",
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/authorizations"
+ },
+ listGrants: {
+ deprecated: "octokit.oauthAuthorizations.listGrants() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-grants",
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/applications/grants"
+ },
+ resetAuthorization: {
+ deprecated: "octokit.oauthAuthorizations.resetAuthorization() has been renamed to octokit.apps.resetAuthorization() (2019-11-05)",
+ method: "POST",
+ params: {
+ access_token: {
+ required: true,
+ type: "string"
+ },
+ client_id: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/applications/:client_id/tokens/:access_token"
+ },
+ revokeAuthorizationForApplication: {
+ deprecated: "octokit.oauthAuthorizations.revokeAuthorizationForApplication() has been renamed to octokit.apps.revokeAuthorizationForApplication() (2019-11-05)",
+ method: "DELETE",
+ params: {
+ access_token: {
+ required: true,
+ type: "string"
+ },
+ client_id: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/applications/:client_id/tokens/:access_token"
+ },
+ revokeGrantForApplication: {
+ deprecated: "octokit.oauthAuthorizations.revokeGrantForApplication() has been renamed to octokit.apps.revokeGrantForApplication() (2019-11-05)",
+ method: "DELETE",
+ params: {
+ access_token: {
+ required: true,
+ type: "string"
+ },
+ client_id: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/applications/:client_id/grants/:access_token"
+ },
+ updateAuthorization: {
+ deprecated: "octokit.oauthAuthorizations.updateAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization",
+ method: "PATCH",
+ params: {
+ add_scopes: {
+ type: "string[]"
+ },
+ authorization_id: {
+ required: true,
+ type: "integer"
+ },
+ fingerprint: {
+ type: "string"
+ },
+ note: {
+ type: "string"
+ },
+ note_url: {
+ type: "string"
+ },
+ remove_scopes: {
+ type: "string[]"
+ },
+ scopes: {
+ type: "string[]"
+ }
+ },
+ url: "/authorizations/:authorization_id"
+ }
+ },
+ orgs: {
+ addOrUpdateMembership: {
+ method: "PUT",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ role: {
+ enum: ["admin", "member"],
+ type: "string"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/memberships/:username"
+ },
+ blockUser: {
+ method: "PUT",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/blocks/:username"
+ },
+ checkBlockedUser: {
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/blocks/:username"
+ },
+ checkMembership: {
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/members/:username"
+ },
+ checkPublicMembership: {
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/public_members/:username"
+ },
+ concealMembership: {
+ method: "DELETE",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/public_members/:username"
+ },
+ convertMemberToOutsideCollaborator: {
+ method: "PUT",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/outside_collaborators/:username"
+ },
+ createHook: {
+ method: "POST",
+ params: {
+ active: {
+ type: "boolean"
+ },
+ config: {
+ required: true,
+ type: "object"
+ },
+ "config.content_type": {
+ type: "string"
+ },
+ "config.insecure_ssl": {
+ type: "string"
+ },
+ "config.secret": {
+ type: "string"
+ },
+ "config.url": {
+ required: true,
+ type: "string"
+ },
+ events: {
+ type: "string[]"
+ },
+ name: {
+ required: true,
+ type: "string"
+ },
+ org: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/hooks"
+ },
+ createInvitation: {
+ method: "POST",
+ params: {
+ email: {
+ type: "string"
+ },
+ invitee_id: {
+ type: "integer"
+ },
+ org: {
+ required: true,
+ type: "string"
+ },
+ role: {
+ enum: ["admin", "direct_member", "billing_manager"],
+ type: "string"
+ },
+ team_ids: {
+ type: "integer[]"
+ }
+ },
+ url: "/orgs/:org/invitations"
+ },
+ deleteHook: {
+ method: "DELETE",
+ params: {
+ hook_id: {
+ required: true,
+ type: "integer"
+ },
+ org: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/hooks/:hook_id"
+ },
+ get: {
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org"
+ },
+ getHook: {
+ method: "GET",
+ params: {
+ hook_id: {
+ required: true,
+ type: "integer"
+ },
+ org: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/hooks/:hook_id"
+ },
+ getMembership: {
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/memberships/:username"
+ },
+ getMembershipForAuthenticatedUser: {
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/user/memberships/orgs/:org"
+ },
+ list: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ since: {
+ type: "integer"
+ }
+ },
+ url: "/organizations"
+ },
+ listBlockedUsers: {
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/blocks"
+ },
+ listForAuthenticatedUser: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/user/orgs"
+ },
+ listForUser: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/users/:username/orgs"
+ },
+ listHooks: {
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/orgs/:org/hooks"
+ },
+ listInstallations: {
+ headers: {
+ accept: "application/vnd.github.machine-man-preview+json"
+ },
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/orgs/:org/installations"
+ },
+ listInvitationTeams: {
+ method: "GET",
+ params: {
+ invitation_id: {
+ required: true,
+ type: "integer"
+ },
+ org: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/orgs/:org/invitations/:invitation_id/teams"
+ },
+ listMembers: {
+ method: "GET",
+ params: {
+ filter: {
+ enum: ["2fa_disabled", "all"],
+ type: "string"
+ },
+ org: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ role: {
+ enum: ["all", "admin", "member"],
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/members"
+ },
+ listMemberships: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ state: {
+ enum: ["active", "pending"],
+ type: "string"
+ }
+ },
+ url: "/user/memberships/orgs"
+ },
+ listOutsideCollaborators: {
+ method: "GET",
+ params: {
+ filter: {
+ enum: ["2fa_disabled", "all"],
+ type: "string"
+ },
+ org: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/orgs/:org/outside_collaborators"
+ },
+ listPendingInvitations: {
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/orgs/:org/invitations"
+ },
+ listPublicMembers: {
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/orgs/:org/public_members"
+ },
+ pingHook: {
+ method: "POST",
+ params: {
+ hook_id: {
+ required: true,
+ type: "integer"
+ },
+ org: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/hooks/:hook_id/pings"
+ },
+ publicizeMembership: {
+ method: "PUT",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/public_members/:username"
+ },
+ removeMember: {
+ method: "DELETE",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/members/:username"
+ },
+ removeMembership: {
+ method: "DELETE",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/memberships/:username"
+ },
+ removeOutsideCollaborator: {
+ method: "DELETE",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/outside_collaborators/:username"
+ },
+ unblockUser: {
+ method: "DELETE",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/blocks/:username"
+ },
+ update: {
+ method: "PATCH",
+ params: {
+ billing_email: {
+ type: "string"
+ },
+ company: {
+ type: "string"
+ },
+ default_repository_permission: {
+ enum: ["read", "write", "admin", "none"],
+ type: "string"
+ },
+ description: {
+ type: "string"
+ },
+ email: {
+ type: "string"
+ },
+ has_organization_projects: {
+ type: "boolean"
+ },
+ has_repository_projects: {
+ type: "boolean"
+ },
+ location: {
+ type: "string"
+ },
+ members_allowed_repository_creation_type: {
+ enum: ["all", "private", "none"],
+ type: "string"
+ },
+ members_can_create_internal_repositories: {
+ type: "boolean"
+ },
+ members_can_create_private_repositories: {
+ type: "boolean"
+ },
+ members_can_create_public_repositories: {
+ type: "boolean"
+ },
+ members_can_create_repositories: {
+ type: "boolean"
+ },
+ name: {
+ type: "string"
+ },
+ org: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org"
+ },
+ updateHook: {
+ method: "PATCH",
+ params: {
+ active: {
+ type: "boolean"
+ },
+ config: {
+ type: "object"
+ },
+ "config.content_type": {
+ type: "string"
+ },
+ "config.insecure_ssl": {
+ type: "string"
+ },
+ "config.secret": {
+ type: "string"
+ },
+ "config.url": {
+ required: true,
+ type: "string"
+ },
+ events: {
+ type: "string[]"
+ },
+ hook_id: {
+ required: true,
+ type: "integer"
+ },
+ org: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/hooks/:hook_id"
+ },
+ updateMembership: {
+ method: "PATCH",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ state: {
+ enum: ["active"],
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/user/memberships/orgs/:org"
+ }
+ },
+ projects: {
+ addCollaborator: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "PUT",
+ params: {
+ permission: {
+ enum: ["read", "write", "admin"],
+ type: "string"
+ },
+ project_id: {
+ required: true,
+ type: "integer"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/projects/:project_id/collaborators/:username"
+ },
+ createCard: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "POST",
+ params: {
+ column_id: {
+ required: true,
+ type: "integer"
+ },
+ content_id: {
+ type: "integer"
+ },
+ content_type: {
+ type: "string"
+ },
+ note: {
+ type: "string"
+ }
+ },
+ url: "/projects/columns/:column_id/cards"
+ },
+ createColumn: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "POST",
+ params: {
+ name: {
+ required: true,
+ type: "string"
+ },
+ project_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/projects/:project_id/columns"
+ },
+ createForAuthenticatedUser: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "POST",
+ params: {
+ body: {
+ type: "string"
+ },
+ name: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/user/projects"
+ },
+ createForOrg: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "POST",
+ params: {
+ body: {
+ type: "string"
+ },
+ name: {
+ required: true,
+ type: "string"
+ },
+ org: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/projects"
+ },
+ createForRepo: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "POST",
+ params: {
+ body: {
+ type: "string"
+ },
+ name: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/projects"
+ },
+ delete: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "DELETE",
+ params: {
+ project_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/projects/:project_id"
+ },
+ deleteCard: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "DELETE",
+ params: {
+ card_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/projects/columns/cards/:card_id"
+ },
+ deleteColumn: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "DELETE",
+ params: {
+ column_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/projects/columns/:column_id"
+ },
+ get: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "GET",
+ params: {
+ project_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/projects/:project_id"
+ },
+ getCard: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "GET",
+ params: {
+ card_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/projects/columns/cards/:card_id"
+ },
+ getColumn: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "GET",
+ params: {
+ column_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/projects/columns/:column_id"
+ },
+ listCards: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "GET",
+ params: {
+ archived_state: {
+ enum: ["all", "archived", "not_archived"],
+ type: "string"
+ },
+ column_id: {
+ required: true,
+ type: "integer"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/projects/columns/:column_id/cards"
+ },
+ listCollaborators: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "GET",
+ params: {
+ affiliation: {
+ enum: ["outside", "direct", "all"],
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ project_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/projects/:project_id/collaborators"
+ },
+ listColumns: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ project_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/projects/:project_id/columns"
+ },
+ listForOrg: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ state: {
+ enum: ["open", "closed", "all"],
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/projects"
+ },
+ listForRepo: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ state: {
+ enum: ["open", "closed", "all"],
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/projects"
+ },
+ listForUser: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ state: {
+ enum: ["open", "closed", "all"],
+ type: "string"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/users/:username/projects"
+ },
+ moveCard: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "POST",
+ params: {
+ card_id: {
+ required: true,
+ type: "integer"
+ },
+ column_id: {
+ type: "integer"
+ },
+ position: {
+ required: true,
+ type: "string",
+ validation: "^(top|bottom|after:\\d+)$"
+ }
+ },
+ url: "/projects/columns/cards/:card_id/moves"
+ },
+ moveColumn: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "POST",
+ params: {
+ column_id: {
+ required: true,
+ type: "integer"
+ },
+ position: {
+ required: true,
+ type: "string",
+ validation: "^(first|last|after:\\d+)$"
+ }
+ },
+ url: "/projects/columns/:column_id/moves"
+ },
+ removeCollaborator: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "DELETE",
+ params: {
+ project_id: {
+ required: true,
+ type: "integer"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/projects/:project_id/collaborators/:username"
+ },
+ reviewUserPermissionLevel: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "GET",
+ params: {
+ project_id: {
+ required: true,
+ type: "integer"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/projects/:project_id/collaborators/:username/permission"
+ },
+ update: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "PATCH",
+ params: {
+ body: {
+ type: "string"
+ },
+ name: {
+ type: "string"
+ },
+ organization_permission: {
+ type: "string"
+ },
+ private: {
+ type: "boolean"
+ },
+ project_id: {
+ required: true,
+ type: "integer"
+ },
+ state: {
+ enum: ["open", "closed"],
+ type: "string"
+ }
+ },
+ url: "/projects/:project_id"
+ },
+ updateCard: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "PATCH",
+ params: {
+ archived: {
+ type: "boolean"
+ },
+ card_id: {
+ required: true,
+ type: "integer"
+ },
+ note: {
+ type: "string"
+ }
+ },
+ url: "/projects/columns/cards/:card_id"
+ },
+ updateColumn: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "PATCH",
+ params: {
+ column_id: {
+ required: true,
+ type: "integer"
+ },
+ name: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/projects/columns/:column_id"
+ }
+ },
+ pulls: {
+ checkIfMerged: {
+ method: "GET",
+ params: {
+ number: {
+ alias: "pull_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ pull_number: {
+ required: true,
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/:pull_number/merge"
+ },
+ create: {
+ method: "POST",
+ params: {
+ base: {
+ required: true,
+ type: "string"
+ },
+ body: {
+ type: "string"
+ },
+ draft: {
+ type: "boolean"
+ },
+ head: {
+ required: true,
+ type: "string"
+ },
+ maintainer_can_modify: {
+ type: "boolean"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ title: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls"
+ },
+ createComment: {
+ method: "POST",
+ params: {
+ body: {
+ required: true,
+ type: "string"
+ },
+ commit_id: {
+ required: true,
+ type: "string"
+ },
+ in_reply_to: {
+ deprecated: true,
+ description: "The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.",
+ type: "integer"
+ },
+ line: {
+ type: "integer"
+ },
+ number: {
+ alias: "pull_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ path: {
+ required: true,
+ type: "string"
+ },
+ position: {
+ type: "integer"
+ },
+ pull_number: {
+ required: true,
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ side: {
+ enum: ["LEFT", "RIGHT"],
+ type: "string"
+ },
+ start_line: {
+ type: "integer"
+ },
+ start_side: {
+ enum: ["LEFT", "RIGHT", "side"],
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/:pull_number/comments"
+ },
+ createCommentReply: {
+ deprecated: "octokit.pulls.createCommentReply() has been renamed to octokit.pulls.createComment() (2019-09-09)",
+ method: "POST",
+ params: {
+ body: {
+ required: true,
+ type: "string"
+ },
+ commit_id: {
+ required: true,
+ type: "string"
+ },
+ in_reply_to: {
+ deprecated: true,
+ description: "The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.",
+ type: "integer"
+ },
+ line: {
+ type: "integer"
+ },
+ number: {
+ alias: "pull_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ path: {
+ required: true,
+ type: "string"
+ },
+ position: {
+ type: "integer"
+ },
+ pull_number: {
+ required: true,
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ side: {
+ enum: ["LEFT", "RIGHT"],
+ type: "string"
+ },
+ start_line: {
+ type: "integer"
+ },
+ start_side: {
+ enum: ["LEFT", "RIGHT", "side"],
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/:pull_number/comments"
+ },
+ createFromIssue: {
+ deprecated: "octokit.pulls.createFromIssue() is deprecated, see https://developer.github.com/v3/pulls/#create-a-pull-request",
+ method: "POST",
+ params: {
+ base: {
+ required: true,
+ type: "string"
+ },
+ draft: {
+ type: "boolean"
+ },
+ head: {
+ required: true,
+ type: "string"
+ },
+ issue: {
+ required: true,
+ type: "integer"
+ },
+ maintainer_can_modify: {
+ type: "boolean"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls"
+ },
+ createReview: {
+ method: "POST",
+ params: {
+ body: {
+ type: "string"
+ },
+ comments: {
+ type: "object[]"
+ },
+ "comments[].body": {
+ required: true,
+ type: "string"
+ },
+ "comments[].path": {
+ required: true,
+ type: "string"
+ },
+ "comments[].position": {
+ required: true,
+ type: "integer"
+ },
+ commit_id: {
+ type: "string"
+ },
+ event: {
+ enum: ["APPROVE", "REQUEST_CHANGES", "COMMENT"],
+ type: "string"
+ },
+ number: {
+ alias: "pull_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ pull_number: {
+ required: true,
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/:pull_number/reviews"
+ },
+ createReviewCommentReply: {
+ method: "POST",
+ params: {
+ body: {
+ required: true,
+ type: "string"
+ },
+ comment_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ pull_number: {
+ required: true,
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies"
+ },
+ createReviewRequest: {
+ method: "POST",
+ params: {
+ number: {
+ alias: "pull_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ pull_number: {
+ required: true,
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ reviewers: {
+ type: "string[]"
+ },
+ team_reviewers: {
+ type: "string[]"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"
+ },
+ deleteComment: {
+ method: "DELETE",
+ params: {
+ comment_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/comments/:comment_id"
+ },
+ deletePendingReview: {
+ method: "DELETE",
+ params: {
+ number: {
+ alias: "pull_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ pull_number: {
+ required: true,
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ review_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"
+ },
+ deleteReviewRequest: {
+ method: "DELETE",
+ params: {
+ number: {
+ alias: "pull_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ pull_number: {
+ required: true,
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ reviewers: {
+ type: "string[]"
+ },
+ team_reviewers: {
+ type: "string[]"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"
+ },
+ dismissReview: {
+ method: "PUT",
+ params: {
+ message: {
+ required: true,
+ type: "string"
+ },
+ number: {
+ alias: "pull_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ pull_number: {
+ required: true,
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ review_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals"
+ },
+ get: {
+ method: "GET",
+ params: {
+ number: {
+ alias: "pull_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ pull_number: {
+ required: true,
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/:pull_number"
+ },
+ getComment: {
+ method: "GET",
+ params: {
+ comment_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/comments/:comment_id"
+ },
+ getCommentsForReview: {
+ method: "GET",
+ params: {
+ number: {
+ alias: "pull_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ pull_number: {
+ required: true,
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ review_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments"
+ },
+ getReview: {
+ method: "GET",
+ params: {
+ number: {
+ alias: "pull_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ pull_number: {
+ required: true,
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ review_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"
+ },
+ list: {
+ method: "GET",
+ params: {
+ base: {
+ type: "string"
+ },
+ direction: {
+ enum: ["asc", "desc"],
+ type: "string"
+ },
+ head: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ sort: {
+ enum: ["created", "updated", "popularity", "long-running"],
+ type: "string"
+ },
+ state: {
+ enum: ["open", "closed", "all"],
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls"
+ },
+ listComments: {
+ method: "GET",
+ params: {
+ direction: {
+ enum: ["asc", "desc"],
+ type: "string"
+ },
+ number: {
+ alias: "pull_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ pull_number: {
+ required: true,
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ since: {
+ type: "string"
+ },
+ sort: {
+ enum: ["created", "updated"],
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/:pull_number/comments"
+ },
+ listCommentsForRepo: {
+ method: "GET",
+ params: {
+ direction: {
+ enum: ["asc", "desc"],
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ since: {
+ type: "string"
+ },
+ sort: {
+ enum: ["created", "updated"],
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/comments"
+ },
+ listCommits: {
+ method: "GET",
+ params: {
+ number: {
+ alias: "pull_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ pull_number: {
+ required: true,
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/:pull_number/commits"
+ },
+ listFiles: {
+ method: "GET",
+ params: {
+ number: {
+ alias: "pull_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ pull_number: {
+ required: true,
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/:pull_number/files"
+ },
+ listReviewRequests: {
+ method: "GET",
+ params: {
+ number: {
+ alias: "pull_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ pull_number: {
+ required: true,
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"
+ },
+ listReviews: {
+ method: "GET",
+ params: {
+ number: {
+ alias: "pull_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ pull_number: {
+ required: true,
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/:pull_number/reviews"
+ },
+ merge: {
+ method: "PUT",
+ params: {
+ commit_message: {
+ type: "string"
+ },
+ commit_title: {
+ type: "string"
+ },
+ merge_method: {
+ enum: ["merge", "squash", "rebase"],
+ type: "string"
+ },
+ number: {
+ alias: "pull_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ pull_number: {
+ required: true,
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ sha: {
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/:pull_number/merge"
+ },
+ submitReview: {
+ method: "POST",
+ params: {
+ body: {
+ type: "string"
+ },
+ event: {
+ enum: ["APPROVE", "REQUEST_CHANGES", "COMMENT"],
+ required: true,
+ type: "string"
+ },
+ number: {
+ alias: "pull_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ pull_number: {
+ required: true,
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ review_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events"
+ },
+ update: {
+ method: "PATCH",
+ params: {
+ base: {
+ type: "string"
+ },
+ body: {
+ type: "string"
+ },
+ maintainer_can_modify: {
+ type: "boolean"
+ },
+ number: {
+ alias: "pull_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ pull_number: {
+ required: true,
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ state: {
+ enum: ["open", "closed"],
+ type: "string"
+ },
+ title: {
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/:pull_number"
+ },
+ updateBranch: {
+ headers: {
+ accept: "application/vnd.github.lydian-preview+json"
+ },
+ method: "PUT",
+ params: {
+ expected_head_sha: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ pull_number: {
+ required: true,
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/:pull_number/update-branch"
+ },
+ updateComment: {
+ method: "PATCH",
+ params: {
+ body: {
+ required: true,
+ type: "string"
+ },
+ comment_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/comments/:comment_id"
+ },
+ updateReview: {
+ method: "PUT",
+ params: {
+ body: {
+ required: true,
+ type: "string"
+ },
+ number: {
+ alias: "pull_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ pull_number: {
+ required: true,
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ review_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"
+ }
+ },
+ rateLimit: {
+ get: {
+ method: "GET",
+ params: {},
+ url: "/rate_limit"
+ }
+ },
+ reactions: {
+ createForCommitComment: {
+ headers: {
+ accept: "application/vnd.github.squirrel-girl-preview+json"
+ },
+ method: "POST",
+ params: {
+ comment_id: {
+ required: true,
+ type: "integer"
+ },
+ content: {
+ enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/comments/:comment_id/reactions"
+ },
+ createForIssue: {
+ headers: {
+ accept: "application/vnd.github.squirrel-girl-preview+json"
+ },
+ method: "POST",
+ params: {
+ content: {
+ enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
+ required: true,
+ type: "string"
+ },
+ issue_number: {
+ required: true,
+ type: "integer"
+ },
+ number: {
+ alias: "issue_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues/:issue_number/reactions"
+ },
+ createForIssueComment: {
+ headers: {
+ accept: "application/vnd.github.squirrel-girl-preview+json"
+ },
+ method: "POST",
+ params: {
+ comment_id: {
+ required: true,
+ type: "integer"
+ },
+ content: {
+ enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions"
+ },
+ createForPullRequestReviewComment: {
+ headers: {
+ accept: "application/vnd.github.squirrel-girl-preview+json"
+ },
+ method: "POST",
+ params: {
+ comment_id: {
+ required: true,
+ type: "integer"
+ },
+ content: {
+ enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions"
+ },
+ createForTeamDiscussion: {
+ deprecated: "octokit.reactions.createForTeamDiscussion() has been renamed to octokit.reactions.createForTeamDiscussionLegacy() (2020-01-16)",
+ headers: {
+ accept: "application/vnd.github.squirrel-girl-preview+json"
+ },
+ method: "POST",
+ params: {
+ content: {
+ enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
+ required: true,
+ type: "string"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/discussions/:discussion_number/reactions"
+ },
+ createForTeamDiscussionComment: {
+ deprecated: "octokit.reactions.createForTeamDiscussionComment() has been renamed to octokit.reactions.createForTeamDiscussionCommentLegacy() (2020-01-16)",
+ headers: {
+ accept: "application/vnd.github.squirrel-girl-preview+json"
+ },
+ method: "POST",
+ params: {
+ comment_number: {
+ required: true,
+ type: "integer"
+ },
+ content: {
+ enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
+ required: true,
+ type: "string"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
+ },
+ createForTeamDiscussionCommentInOrg: {
+ headers: {
+ accept: "application/vnd.github.squirrel-girl-preview+json"
+ },
+ method: "POST",
+ params: {
+ comment_number: {
+ required: true,
+ type: "integer"
+ },
+ content: {
+ enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
+ required: true,
+ type: "string"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ org: {
+ required: true,
+ type: "string"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"
+ },
+ createForTeamDiscussionCommentLegacy: {
+ deprecated: "octokit.reactions.createForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy",
+ headers: {
+ accept: "application/vnd.github.squirrel-girl-preview+json"
+ },
+ method: "POST",
+ params: {
+ comment_number: {
+ required: true,
+ type: "integer"
+ },
+ content: {
+ enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
+ required: true,
+ type: "string"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
+ },
+ createForTeamDiscussionInOrg: {
+ headers: {
+ accept: "application/vnd.github.squirrel-girl-preview+json"
+ },
+ method: "POST",
+ params: {
+ content: {
+ enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
+ required: true,
+ type: "string"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ org: {
+ required: true,
+ type: "string"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"
+ },
+ createForTeamDiscussionLegacy: {
+ deprecated: "octokit.reactions.createForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy",
+ headers: {
+ accept: "application/vnd.github.squirrel-girl-preview+json"
+ },
+ method: "POST",
+ params: {
+ content: {
+ enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
+ required: true,
+ type: "string"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/discussions/:discussion_number/reactions"
+ },
+ delete: {
+ headers: {
+ accept: "application/vnd.github.squirrel-girl-preview+json"
+ },
+ method: "DELETE",
+ params: {
+ reaction_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/reactions/:reaction_id"
+ },
+ listForCommitComment: {
+ headers: {
+ accept: "application/vnd.github.squirrel-girl-preview+json"
+ },
+ method: "GET",
+ params: {
+ comment_id: {
+ required: true,
+ type: "integer"
+ },
+ content: {
+ enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/comments/:comment_id/reactions"
+ },
+ listForIssue: {
+ headers: {
+ accept: "application/vnd.github.squirrel-girl-preview+json"
+ },
+ method: "GET",
+ params: {
+ content: {
+ enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
+ type: "string"
+ },
+ issue_number: {
+ required: true,
+ type: "integer"
+ },
+ number: {
+ alias: "issue_number",
+ deprecated: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues/:issue_number/reactions"
+ },
+ listForIssueComment: {
+ headers: {
+ accept: "application/vnd.github.squirrel-girl-preview+json"
+ },
+ method: "GET",
+ params: {
+ comment_id: {
+ required: true,
+ type: "integer"
+ },
+ content: {
+ enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions"
+ },
+ listForPullRequestReviewComment: {
+ headers: {
+ accept: "application/vnd.github.squirrel-girl-preview+json"
+ },
+ method: "GET",
+ params: {
+ comment_id: {
+ required: true,
+ type: "integer"
+ },
+ content: {
+ enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions"
+ },
+ listForTeamDiscussion: {
+ deprecated: "octokit.reactions.listForTeamDiscussion() has been renamed to octokit.reactions.listForTeamDiscussionLegacy() (2020-01-16)",
+ headers: {
+ accept: "application/vnd.github.squirrel-girl-preview+json"
+ },
+ method: "GET",
+ params: {
+ content: {
+ enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
+ type: "string"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/discussions/:discussion_number/reactions"
+ },
+ listForTeamDiscussionComment: {
+ deprecated: "octokit.reactions.listForTeamDiscussionComment() has been renamed to octokit.reactions.listForTeamDiscussionCommentLegacy() (2020-01-16)",
+ headers: {
+ accept: "application/vnd.github.squirrel-girl-preview+json"
+ },
+ method: "GET",
+ params: {
+ comment_number: {
+ required: true,
+ type: "integer"
+ },
+ content: {
+ enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
+ type: "string"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
+ },
+ listForTeamDiscussionCommentInOrg: {
+ headers: {
+ accept: "application/vnd.github.squirrel-girl-preview+json"
+ },
+ method: "GET",
+ params: {
+ comment_number: {
+ required: true,
+ type: "integer"
+ },
+ content: {
+ enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
+ type: "string"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ org: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"
+ },
+ listForTeamDiscussionCommentLegacy: {
+ deprecated: "octokit.reactions.listForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy",
+ headers: {
+ accept: "application/vnd.github.squirrel-girl-preview+json"
+ },
+ method: "GET",
+ params: {
+ comment_number: {
+ required: true,
+ type: "integer"
+ },
+ content: {
+ enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
+ type: "string"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
+ },
+ listForTeamDiscussionInOrg: {
+ headers: {
+ accept: "application/vnd.github.squirrel-girl-preview+json"
+ },
+ method: "GET",
+ params: {
+ content: {
+ enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
+ type: "string"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ org: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"
+ },
+ listForTeamDiscussionLegacy: {
+ deprecated: "octokit.reactions.listForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy",
+ headers: {
+ accept: "application/vnd.github.squirrel-girl-preview+json"
+ },
+ method: "GET",
+ params: {
+ content: {
+ enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
+ type: "string"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/discussions/:discussion_number/reactions"
+ }
+ },
+ repos: {
+ acceptInvitation: {
+ method: "PATCH",
+ params: {
+ invitation_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/user/repository_invitations/:invitation_id"
+ },
+ addCollaborator: {
+ method: "PUT",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ permission: {
+ enum: ["pull", "push", "admin"],
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/collaborators/:username"
+ },
+ addDeployKey: {
+ method: "POST",
+ params: {
+ key: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ read_only: {
+ type: "boolean"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ title: {
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/keys"
+ },
+ addProtectedBranchAdminEnforcement: {
+ method: "POST",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"
+ },
+ addProtectedBranchAppRestrictions: {
+ method: "POST",
+ params: {
+ apps: {
+ mapTo: "data",
+ required: true,
+ type: "string[]"
+ },
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
+ },
+ addProtectedBranchRequiredSignatures: {
+ headers: {
+ accept: "application/vnd.github.zzzax-preview+json"
+ },
+ method: "POST",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"
+ },
+ addProtectedBranchRequiredStatusChecksContexts: {
+ method: "POST",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ contexts: {
+ mapTo: "data",
+ required: true,
+ type: "string[]"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
+ },
+ addProtectedBranchTeamRestrictions: {
+ method: "POST",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ teams: {
+ mapTo: "data",
+ required: true,
+ type: "string[]"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
+ },
+ addProtectedBranchUserRestrictions: {
+ method: "POST",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ users: {
+ mapTo: "data",
+ required: true,
+ type: "string[]"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
+ },
+ checkCollaborator: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/collaborators/:username"
+ },
+ checkVulnerabilityAlerts: {
+ headers: {
+ accept: "application/vnd.github.dorian-preview+json"
+ },
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/vulnerability-alerts"
+ },
+ compareCommits: {
+ method: "GET",
+ params: {
+ base: {
+ required: true,
+ type: "string"
+ },
+ head: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/compare/:base...:head"
+ },
+ createCommitComment: {
+ method: "POST",
+ params: {
+ body: {
+ required: true,
+ type: "string"
+ },
+ commit_sha: {
+ required: true,
+ type: "string"
+ },
+ line: {
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ path: {
+ type: "string"
+ },
+ position: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ sha: {
+ alias: "commit_sha",
+ deprecated: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/commits/:commit_sha/comments"
+ },
+ createDeployment: {
+ method: "POST",
+ params: {
+ auto_merge: {
+ type: "boolean"
+ },
+ description: {
+ type: "string"
+ },
+ environment: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ payload: {
+ type: "string"
+ },
+ production_environment: {
+ type: "boolean"
+ },
+ ref: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ required_contexts: {
+ type: "string[]"
+ },
+ task: {
+ type: "string"
+ },
+ transient_environment: {
+ type: "boolean"
+ }
+ },
+ url: "/repos/:owner/:repo/deployments"
+ },
+ createDeploymentStatus: {
+ method: "POST",
+ params: {
+ auto_inactive: {
+ type: "boolean"
+ },
+ deployment_id: {
+ required: true,
+ type: "integer"
+ },
+ description: {
+ type: "string"
+ },
+ environment: {
+ enum: ["production", "staging", "qa"],
+ type: "string"
+ },
+ environment_url: {
+ type: "string"
+ },
+ log_url: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ state: {
+ enum: ["error", "failure", "inactive", "in_progress", "queued", "pending", "success"],
+ required: true,
+ type: "string"
+ },
+ target_url: {
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/deployments/:deployment_id/statuses"
+ },
+ createDispatchEvent: {
+ method: "POST",
+ params: {
+ client_payload: {
+ type: "object"
+ },
+ event_type: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/dispatches"
+ },
+ createFile: {
+ deprecated: "octokit.repos.createFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)",
+ method: "PUT",
+ params: {
+ author: {
+ type: "object"
+ },
+ "author.email": {
+ required: true,
+ type: "string"
+ },
+ "author.name": {
+ required: true,
+ type: "string"
+ },
+ branch: {
+ type: "string"
+ },
+ committer: {
+ type: "object"
+ },
+ "committer.email": {
+ required: true,
+ type: "string"
+ },
+ "committer.name": {
+ required: true,
+ type: "string"
+ },
+ content: {
+ required: true,
+ type: "string"
+ },
+ message: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ path: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ sha: {
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/contents/:path"
+ },
+ createForAuthenticatedUser: {
+ method: "POST",
+ params: {
+ allow_merge_commit: {
+ type: "boolean"
+ },
+ allow_rebase_merge: {
+ type: "boolean"
+ },
+ allow_squash_merge: {
+ type: "boolean"
+ },
+ auto_init: {
+ type: "boolean"
+ },
+ delete_branch_on_merge: {
+ type: "boolean"
+ },
+ description: {
+ type: "string"
+ },
+ gitignore_template: {
+ type: "string"
+ },
+ has_issues: {
+ type: "boolean"
+ },
+ has_projects: {
+ type: "boolean"
+ },
+ has_wiki: {
+ type: "boolean"
+ },
+ homepage: {
+ type: "string"
+ },
+ is_template: {
+ type: "boolean"
+ },
+ license_template: {
+ type: "string"
+ },
+ name: {
+ required: true,
+ type: "string"
+ },
+ private: {
+ type: "boolean"
+ },
+ team_id: {
+ type: "integer"
+ },
+ visibility: {
+ enum: ["public", "private", "visibility", "internal"],
+ type: "string"
+ }
+ },
+ url: "/user/repos"
+ },
+ createFork: {
+ method: "POST",
+ params: {
+ organization: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/forks"
+ },
+ createHook: {
+ method: "POST",
+ params: {
+ active: {
+ type: "boolean"
+ },
+ config: {
+ required: true,
+ type: "object"
+ },
+ "config.content_type": {
+ type: "string"
+ },
+ "config.insecure_ssl": {
+ type: "string"
+ },
+ "config.secret": {
+ type: "string"
+ },
+ "config.url": {
+ required: true,
+ type: "string"
+ },
+ events: {
+ type: "string[]"
+ },
+ name: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/hooks"
+ },
+ createInOrg: {
+ method: "POST",
+ params: {
+ allow_merge_commit: {
+ type: "boolean"
+ },
+ allow_rebase_merge: {
+ type: "boolean"
+ },
+ allow_squash_merge: {
+ type: "boolean"
+ },
+ auto_init: {
+ type: "boolean"
+ },
+ delete_branch_on_merge: {
+ type: "boolean"
+ },
+ description: {
+ type: "string"
+ },
+ gitignore_template: {
+ type: "string"
+ },
+ has_issues: {
+ type: "boolean"
+ },
+ has_projects: {
+ type: "boolean"
+ },
+ has_wiki: {
+ type: "boolean"
+ },
+ homepage: {
+ type: "string"
+ },
+ is_template: {
+ type: "boolean"
+ },
+ license_template: {
+ type: "string"
+ },
+ name: {
+ required: true,
+ type: "string"
+ },
+ org: {
+ required: true,
+ type: "string"
+ },
+ private: {
+ type: "boolean"
+ },
+ team_id: {
+ type: "integer"
+ },
+ visibility: {
+ enum: ["public", "private", "visibility", "internal"],
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/repos"
+ },
+ createOrUpdateFile: {
+ method: "PUT",
+ params: {
+ author: {
+ type: "object"
+ },
+ "author.email": {
+ required: true,
+ type: "string"
+ },
+ "author.name": {
+ required: true,
+ type: "string"
+ },
+ branch: {
+ type: "string"
+ },
+ committer: {
+ type: "object"
+ },
+ "committer.email": {
+ required: true,
+ type: "string"
+ },
+ "committer.name": {
+ required: true,
+ type: "string"
+ },
+ content: {
+ required: true,
+ type: "string"
+ },
+ message: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ path: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ sha: {
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/contents/:path"
+ },
+ createRelease: {
+ method: "POST",
+ params: {
+ body: {
+ type: "string"
+ },
+ draft: {
+ type: "boolean"
+ },
+ name: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ prerelease: {
+ type: "boolean"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ tag_name: {
+ required: true,
+ type: "string"
+ },
+ target_commitish: {
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/releases"
+ },
+ createStatus: {
+ method: "POST",
+ params: {
+ context: {
+ type: "string"
+ },
+ description: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ sha: {
+ required: true,
+ type: "string"
+ },
+ state: {
+ enum: ["error", "failure", "pending", "success"],
+ required: true,
+ type: "string"
+ },
+ target_url: {
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/statuses/:sha"
+ },
+ createUsingTemplate: {
+ headers: {
+ accept: "application/vnd.github.baptiste-preview+json"
+ },
+ method: "POST",
+ params: {
+ description: {
+ type: "string"
+ },
+ name: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ type: "string"
+ },
+ private: {
+ type: "boolean"
+ },
+ template_owner: {
+ required: true,
+ type: "string"
+ },
+ template_repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:template_owner/:template_repo/generate"
+ },
+ declineInvitation: {
+ method: "DELETE",
+ params: {
+ invitation_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/user/repository_invitations/:invitation_id"
+ },
+ delete: {
+ method: "DELETE",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo"
+ },
+ deleteCommitComment: {
+ method: "DELETE",
+ params: {
+ comment_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/comments/:comment_id"
+ },
+ deleteDownload: {
+ method: "DELETE",
+ params: {
+ download_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/downloads/:download_id"
+ },
+ deleteFile: {
+ method: "DELETE",
+ params: {
+ author: {
+ type: "object"
+ },
+ "author.email": {
+ type: "string"
+ },
+ "author.name": {
+ type: "string"
+ },
+ branch: {
+ type: "string"
+ },
+ committer: {
+ type: "object"
+ },
+ "committer.email": {
+ type: "string"
+ },
+ "committer.name": {
+ type: "string"
+ },
+ message: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ path: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ sha: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/contents/:path"
+ },
+ deleteHook: {
+ method: "DELETE",
+ params: {
+ hook_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/hooks/:hook_id"
+ },
+ deleteInvitation: {
+ method: "DELETE",
+ params: {
+ invitation_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/invitations/:invitation_id"
+ },
+ deleteRelease: {
+ method: "DELETE",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ release_id: {
+ required: true,
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/releases/:release_id"
+ },
+ deleteReleaseAsset: {
+ method: "DELETE",
+ params: {
+ asset_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/releases/assets/:asset_id"
+ },
+ disableAutomatedSecurityFixes: {
+ headers: {
+ accept: "application/vnd.github.london-preview+json"
+ },
+ method: "DELETE",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/automated-security-fixes"
+ },
+ disablePagesSite: {
+ headers: {
+ accept: "application/vnd.github.switcheroo-preview+json"
+ },
+ method: "DELETE",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pages"
+ },
+ disableVulnerabilityAlerts: {
+ headers: {
+ accept: "application/vnd.github.dorian-preview+json"
+ },
+ method: "DELETE",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/vulnerability-alerts"
+ },
+ enableAutomatedSecurityFixes: {
+ headers: {
+ accept: "application/vnd.github.london-preview+json"
+ },
+ method: "PUT",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/automated-security-fixes"
+ },
+ enablePagesSite: {
+ headers: {
+ accept: "application/vnd.github.switcheroo-preview+json"
+ },
+ method: "POST",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ source: {
+ type: "object"
+ },
+ "source.branch": {
+ enum: ["master", "gh-pages"],
+ type: "string"
+ },
+ "source.path": {
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pages"
+ },
+ enableVulnerabilityAlerts: {
+ headers: {
+ accept: "application/vnd.github.dorian-preview+json"
+ },
+ method: "PUT",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/vulnerability-alerts"
+ },
+ get: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo"
+ },
+ getAppsWithAccessToProtectedBranch: {
+ method: "GET",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
+ },
+ getArchiveLink: {
+ method: "GET",
+ params: {
+ archive_format: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ ref: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/:archive_format/:ref"
+ },
+ getBranch: {
+ method: "GET",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch"
+ },
+ getBranchProtection: {
+ method: "GET",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection"
+ },
+ getClones: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ per: {
+ enum: ["day", "week"],
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/traffic/clones"
+ },
+ getCodeFrequencyStats: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/stats/code_frequency"
+ },
+ getCollaboratorPermissionLevel: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/collaborators/:username/permission"
+ },
+ getCombinedStatusForRef: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ ref: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/commits/:ref/status"
+ },
+ getCommit: {
+ method: "GET",
+ params: {
+ commit_sha: {
+ alias: "ref",
+ deprecated: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ ref: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ sha: {
+ alias: "ref",
+ deprecated: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/commits/:ref"
+ },
+ getCommitActivityStats: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/stats/commit_activity"
+ },
+ getCommitComment: {
+ method: "GET",
+ params: {
+ comment_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/comments/:comment_id"
+ },
+ getCommitRefSha: {
+ deprecated: "octokit.repos.getCommitRefSha() is deprecated, see https://developer.github.com/v3/repos/commits/#get-a-single-commit",
+ headers: {
+ accept: "application/vnd.github.v3.sha"
+ },
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ ref: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/commits/:ref"
+ },
+ getContents: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ path: {
+ required: true,
+ type: "string"
+ },
+ ref: {
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/contents/:path"
+ },
+ getContributorsStats: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/stats/contributors"
+ },
+ getDeployKey: {
+ method: "GET",
+ params: {
+ key_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/keys/:key_id"
+ },
+ getDeployment: {
+ method: "GET",
+ params: {
+ deployment_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/deployments/:deployment_id"
+ },
+ getDeploymentStatus: {
+ method: "GET",
+ params: {
+ deployment_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ status_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id"
+ },
+ getDownload: {
+ method: "GET",
+ params: {
+ download_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/downloads/:download_id"
+ },
+ getHook: {
+ method: "GET",
+ params: {
+ hook_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/hooks/:hook_id"
+ },
+ getLatestPagesBuild: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pages/builds/latest"
+ },
+ getLatestRelease: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/releases/latest"
+ },
+ getPages: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pages"
+ },
+ getPagesBuild: {
+ method: "GET",
+ params: {
+ build_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pages/builds/:build_id"
+ },
+ getParticipationStats: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/stats/participation"
+ },
+ getProtectedBranchAdminEnforcement: {
+ method: "GET",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"
+ },
+ getProtectedBranchPullRequestReviewEnforcement: {
+ method: "GET",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"
+ },
+ getProtectedBranchRequiredSignatures: {
+ headers: {
+ accept: "application/vnd.github.zzzax-preview+json"
+ },
+ method: "GET",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"
+ },
+ getProtectedBranchRequiredStatusChecks: {
+ method: "GET",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"
+ },
+ getProtectedBranchRestrictions: {
+ method: "GET",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/restrictions"
+ },
+ getPunchCardStats: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/stats/punch_card"
+ },
+ getReadme: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ ref: {
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/readme"
+ },
+ getRelease: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ release_id: {
+ required: true,
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/releases/:release_id"
+ },
+ getReleaseAsset: {
+ method: "GET",
+ params: {
+ asset_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/releases/assets/:asset_id"
+ },
+ getReleaseByTag: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ tag: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/releases/tags/:tag"
+ },
+ getTeamsWithAccessToProtectedBranch: {
+ method: "GET",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
+ },
+ getTopPaths: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/traffic/popular/paths"
+ },
+ getTopReferrers: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/traffic/popular/referrers"
+ },
+ getUsersWithAccessToProtectedBranch: {
+ method: "GET",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
+ },
+ getViews: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ per: {
+ enum: ["day", "week"],
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/traffic/views"
+ },
+ list: {
+ method: "GET",
+ params: {
+ affiliation: {
+ type: "string"
+ },
+ direction: {
+ enum: ["asc", "desc"],
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ sort: {
+ enum: ["created", "updated", "pushed", "full_name"],
+ type: "string"
+ },
+ type: {
+ enum: ["all", "owner", "public", "private", "member"],
+ type: "string"
+ },
+ visibility: {
+ enum: ["all", "public", "private"],
+ type: "string"
+ }
+ },
+ url: "/user/repos"
+ },
+ listAppsWithAccessToProtectedBranch: {
+ deprecated: "octokit.repos.listAppsWithAccessToProtectedBranch() has been renamed to octokit.repos.getAppsWithAccessToProtectedBranch() (2019-09-13)",
+ method: "GET",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
+ },
+ listAssetsForRelease: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ release_id: {
+ required: true,
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/releases/:release_id/assets"
+ },
+ listBranches: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ protected: {
+ type: "boolean"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches"
+ },
+ listBranchesForHeadCommit: {
+ headers: {
+ accept: "application/vnd.github.groot-preview+json"
+ },
+ method: "GET",
+ params: {
+ commit_sha: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/commits/:commit_sha/branches-where-head"
+ },
+ listCollaborators: {
+ method: "GET",
+ params: {
+ affiliation: {
+ enum: ["outside", "direct", "all"],
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/collaborators"
+ },
+ listCommentsForCommit: {
+ method: "GET",
+ params: {
+ commit_sha: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ ref: {
+ alias: "commit_sha",
+ deprecated: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/commits/:commit_sha/comments"
+ },
+ listCommitComments: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/comments"
+ },
+ listCommits: {
+ method: "GET",
+ params: {
+ author: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ path: {
+ type: "string"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ sha: {
+ type: "string"
+ },
+ since: {
+ type: "string"
+ },
+ until: {
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/commits"
+ },
+ listContributors: {
+ method: "GET",
+ params: {
+ anon: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/contributors"
+ },
+ listDeployKeys: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/keys"
+ },
+ listDeploymentStatuses: {
+ method: "GET",
+ params: {
+ deployment_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/deployments/:deployment_id/statuses"
+ },
+ listDeployments: {
+ method: "GET",
+ params: {
+ environment: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ ref: {
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ sha: {
+ type: "string"
+ },
+ task: {
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/deployments"
+ },
+ listDownloads: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/downloads"
+ },
+ listForOrg: {
+ method: "GET",
+ params: {
+ direction: {
+ enum: ["asc", "desc"],
+ type: "string"
+ },
+ org: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ sort: {
+ enum: ["created", "updated", "pushed", "full_name"],
+ type: "string"
+ },
+ type: {
+ enum: ["all", "public", "private", "forks", "sources", "member", "internal"],
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/repos"
+ },
+ listForUser: {
+ method: "GET",
+ params: {
+ direction: {
+ enum: ["asc", "desc"],
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ sort: {
+ enum: ["created", "updated", "pushed", "full_name"],
+ type: "string"
+ },
+ type: {
+ enum: ["all", "owner", "member"],
+ type: "string"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/users/:username/repos"
+ },
+ listForks: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ sort: {
+ enum: ["newest", "oldest", "stargazers"],
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/forks"
+ },
+ listHooks: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/hooks"
+ },
+ listInvitations: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/invitations"
+ },
+ listInvitationsForAuthenticatedUser: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/user/repository_invitations"
+ },
+ listLanguages: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/languages"
+ },
+ listPagesBuilds: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pages/builds"
+ },
+ listProtectedBranchRequiredStatusChecksContexts: {
+ method: "GET",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
+ },
+ listProtectedBranchTeamRestrictions: {
+ deprecated: "octokit.repos.listProtectedBranchTeamRestrictions() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-09)",
+ method: "GET",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
+ },
+ listProtectedBranchUserRestrictions: {
+ deprecated: "octokit.repos.listProtectedBranchUserRestrictions() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-09)",
+ method: "GET",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
+ },
+ listPublic: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ since: {
+ type: "integer"
+ }
+ },
+ url: "/repositories"
+ },
+ listPullRequestsAssociatedWithCommit: {
+ headers: {
+ accept: "application/vnd.github.groot-preview+json"
+ },
+ method: "GET",
+ params: {
+ commit_sha: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/commits/:commit_sha/pulls"
+ },
+ listReleases: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/releases"
+ },
+ listStatusesForRef: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ ref: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/commits/:ref/statuses"
+ },
+ listTags: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/tags"
+ },
+ listTeams: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/teams"
+ },
+ listTeamsWithAccessToProtectedBranch: {
+ deprecated: "octokit.repos.listTeamsWithAccessToProtectedBranch() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-13)",
+ method: "GET",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
+ },
+ listTopics: {
+ headers: {
+ accept: "application/vnd.github.mercy-preview+json"
+ },
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/topics"
+ },
+ listUsersWithAccessToProtectedBranch: {
+ deprecated: "octokit.repos.listUsersWithAccessToProtectedBranch() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-13)",
+ method: "GET",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
+ },
+ merge: {
+ method: "POST",
+ params: {
+ base: {
+ required: true,
+ type: "string"
+ },
+ commit_message: {
+ type: "string"
+ },
+ head: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/merges"
+ },
+ pingHook: {
+ method: "POST",
+ params: {
+ hook_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/hooks/:hook_id/pings"
+ },
+ removeBranchProtection: {
+ method: "DELETE",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection"
+ },
+ removeCollaborator: {
+ method: "DELETE",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/collaborators/:username"
+ },
+ removeDeployKey: {
+ method: "DELETE",
+ params: {
+ key_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/keys/:key_id"
+ },
+ removeProtectedBranchAdminEnforcement: {
+ method: "DELETE",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"
+ },
+ removeProtectedBranchAppRestrictions: {
+ method: "DELETE",
+ params: {
+ apps: {
+ mapTo: "data",
+ required: true,
+ type: "string[]"
+ },
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
+ },
+ removeProtectedBranchPullRequestReviewEnforcement: {
+ method: "DELETE",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"
+ },
+ removeProtectedBranchRequiredSignatures: {
+ headers: {
+ accept: "application/vnd.github.zzzax-preview+json"
+ },
+ method: "DELETE",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"
+ },
+ removeProtectedBranchRequiredStatusChecks: {
+ method: "DELETE",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"
+ },
+ removeProtectedBranchRequiredStatusChecksContexts: {
+ method: "DELETE",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ contexts: {
+ mapTo: "data",
+ required: true,
+ type: "string[]"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
+ },
+ removeProtectedBranchRestrictions: {
+ method: "DELETE",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/restrictions"
+ },
+ removeProtectedBranchTeamRestrictions: {
+ method: "DELETE",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ teams: {
+ mapTo: "data",
+ required: true,
+ type: "string[]"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
+ },
+ removeProtectedBranchUserRestrictions: {
+ method: "DELETE",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ users: {
+ mapTo: "data",
+ required: true,
+ type: "string[]"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
+ },
+ replaceProtectedBranchAppRestrictions: {
+ method: "PUT",
+ params: {
+ apps: {
+ mapTo: "data",
+ required: true,
+ type: "string[]"
+ },
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
+ },
+ replaceProtectedBranchRequiredStatusChecksContexts: {
+ method: "PUT",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ contexts: {
+ mapTo: "data",
+ required: true,
+ type: "string[]"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
+ },
+ replaceProtectedBranchTeamRestrictions: {
+ method: "PUT",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ teams: {
+ mapTo: "data",
+ required: true,
+ type: "string[]"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
+ },
+ replaceProtectedBranchUserRestrictions: {
+ method: "PUT",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ users: {
+ mapTo: "data",
+ required: true,
+ type: "string[]"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
+ },
+ replaceTopics: {
+ headers: {
+ accept: "application/vnd.github.mercy-preview+json"
+ },
+ method: "PUT",
+ params: {
+ names: {
+ required: true,
+ type: "string[]"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/topics"
+ },
+ requestPageBuild: {
+ method: "POST",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pages/builds"
+ },
+ retrieveCommunityProfileMetrics: {
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/community/profile"
+ },
+ testPushHook: {
+ method: "POST",
+ params: {
+ hook_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/hooks/:hook_id/tests"
+ },
+ transfer: {
+ method: "POST",
+ params: {
+ new_owner: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ team_ids: {
+ type: "integer[]"
+ }
+ },
+ url: "/repos/:owner/:repo/transfer"
+ },
+ update: {
+ method: "PATCH",
+ params: {
+ allow_merge_commit: {
+ type: "boolean"
+ },
+ allow_rebase_merge: {
+ type: "boolean"
+ },
+ allow_squash_merge: {
+ type: "boolean"
+ },
+ archived: {
+ type: "boolean"
+ },
+ default_branch: {
+ type: "string"
+ },
+ delete_branch_on_merge: {
+ type: "boolean"
+ },
+ description: {
+ type: "string"
+ },
+ has_issues: {
+ type: "boolean"
+ },
+ has_projects: {
+ type: "boolean"
+ },
+ has_wiki: {
+ type: "boolean"
+ },
+ homepage: {
+ type: "string"
+ },
+ is_template: {
+ type: "boolean"
+ },
+ name: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ private: {
+ type: "boolean"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ visibility: {
+ enum: ["public", "private", "visibility", "internal"],
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo"
+ },
+ updateBranchProtection: {
+ method: "PUT",
+ params: {
+ allow_deletions: {
+ type: "boolean"
+ },
+ allow_force_pushes: {
+ allowNull: true,
+ type: "boolean"
+ },
+ branch: {
+ required: true,
+ type: "string"
+ },
+ enforce_admins: {
+ allowNull: true,
+ required: true,
+ type: "boolean"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ required_linear_history: {
+ type: "boolean"
+ },
+ required_pull_request_reviews: {
+ allowNull: true,
+ required: true,
+ type: "object"
+ },
+ "required_pull_request_reviews.dismiss_stale_reviews": {
+ type: "boolean"
+ },
+ "required_pull_request_reviews.dismissal_restrictions": {
+ type: "object"
+ },
+ "required_pull_request_reviews.dismissal_restrictions.teams": {
+ type: "string[]"
+ },
+ "required_pull_request_reviews.dismissal_restrictions.users": {
+ type: "string[]"
+ },
+ "required_pull_request_reviews.require_code_owner_reviews": {
+ type: "boolean"
+ },
+ "required_pull_request_reviews.required_approving_review_count": {
+ type: "integer"
+ },
+ required_status_checks: {
+ allowNull: true,
+ required: true,
+ type: "object"
+ },
+ "required_status_checks.contexts": {
+ required: true,
+ type: "string[]"
+ },
+ "required_status_checks.strict": {
+ required: true,
+ type: "boolean"
+ },
+ restrictions: {
+ allowNull: true,
+ required: true,
+ type: "object"
+ },
+ "restrictions.apps": {
+ type: "string[]"
+ },
+ "restrictions.teams": {
+ required: true,
+ type: "string[]"
+ },
+ "restrictions.users": {
+ required: true,
+ type: "string[]"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection"
+ },
+ updateCommitComment: {
+ method: "PATCH",
+ params: {
+ body: {
+ required: true,
+ type: "string"
+ },
+ comment_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/comments/:comment_id"
+ },
+ updateFile: {
+ deprecated: "octokit.repos.updateFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)",
+ method: "PUT",
+ params: {
+ author: {
+ type: "object"
+ },
+ "author.email": {
+ required: true,
+ type: "string"
+ },
+ "author.name": {
+ required: true,
+ type: "string"
+ },
+ branch: {
+ type: "string"
+ },
+ committer: {
+ type: "object"
+ },
+ "committer.email": {
+ required: true,
+ type: "string"
+ },
+ "committer.name": {
+ required: true,
+ type: "string"
+ },
+ content: {
+ required: true,
+ type: "string"
+ },
+ message: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ path: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ sha: {
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/contents/:path"
+ },
+ updateHook: {
+ method: "PATCH",
+ params: {
+ active: {
+ type: "boolean"
+ },
+ add_events: {
+ type: "string[]"
+ },
+ config: {
+ type: "object"
+ },
+ "config.content_type": {
+ type: "string"
+ },
+ "config.insecure_ssl": {
+ type: "string"
+ },
+ "config.secret": {
+ type: "string"
+ },
+ "config.url": {
+ required: true,
+ type: "string"
+ },
+ events: {
+ type: "string[]"
+ },
+ hook_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ remove_events: {
+ type: "string[]"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/hooks/:hook_id"
+ },
+ updateInformationAboutPagesSite: {
+ method: "PUT",
+ params: {
+ cname: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ source: {
+ enum: ['"gh-pages"', '"master"', '"master /docs"'],
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/pages"
+ },
+ updateInvitation: {
+ method: "PATCH",
+ params: {
+ invitation_id: {
+ required: true,
+ type: "integer"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ permissions: {
+ enum: ["read", "write", "admin"],
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/invitations/:invitation_id"
+ },
+ updateProtectedBranchPullRequestReviewEnforcement: {
+ method: "PATCH",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ dismiss_stale_reviews: {
+ type: "boolean"
+ },
+ dismissal_restrictions: {
+ type: "object"
+ },
+ "dismissal_restrictions.teams": {
+ type: "string[]"
+ },
+ "dismissal_restrictions.users": {
+ type: "string[]"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ require_code_owner_reviews: {
+ type: "boolean"
+ },
+ required_approving_review_count: {
+ type: "integer"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"
+ },
+ updateProtectedBranchRequiredStatusChecks: {
+ method: "PATCH",
+ params: {
+ branch: {
+ required: true,
+ type: "string"
+ },
+ contexts: {
+ type: "string[]"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ strict: {
+ type: "boolean"
+ }
+ },
+ url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"
+ },
+ updateRelease: {
+ method: "PATCH",
+ params: {
+ body: {
+ type: "string"
+ },
+ draft: {
+ type: "boolean"
+ },
+ name: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ prerelease: {
+ type: "boolean"
+ },
+ release_id: {
+ required: true,
+ type: "integer"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ tag_name: {
+ type: "string"
+ },
+ target_commitish: {
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/releases/:release_id"
+ },
+ updateReleaseAsset: {
+ method: "PATCH",
+ params: {
+ asset_id: {
+ required: true,
+ type: "integer"
+ },
+ label: {
+ type: "string"
+ },
+ name: {
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/repos/:owner/:repo/releases/assets/:asset_id"
+ },
+ uploadReleaseAsset: {
+ method: "POST",
+ params: {
+ data: {
+ mapTo: "data",
+ required: true,
+ type: "string | object"
+ },
+ file: {
+ alias: "data",
+ deprecated: true,
+ type: "string | object"
+ },
+ headers: {
+ required: true,
+ type: "object"
+ },
+ "headers.content-length": {
+ required: true,
+ type: "integer"
+ },
+ "headers.content-type": {
+ required: true,
+ type: "string"
+ },
+ label: {
+ type: "string"
+ },
+ name: {
+ required: true,
+ type: "string"
+ },
+ url: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: ":url"
+ }
+ },
+ search: {
+ code: {
+ method: "GET",
+ params: {
+ order: {
+ enum: ["desc", "asc"],
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ q: {
+ required: true,
+ type: "string"
+ },
+ sort: {
+ enum: ["indexed"],
+ type: "string"
+ }
+ },
+ url: "/search/code"
+ },
+ commits: {
+ headers: {
+ accept: "application/vnd.github.cloak-preview+json"
+ },
+ method: "GET",
+ params: {
+ order: {
+ enum: ["desc", "asc"],
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ q: {
+ required: true,
+ type: "string"
+ },
+ sort: {
+ enum: ["author-date", "committer-date"],
+ type: "string"
+ }
+ },
+ url: "/search/commits"
+ },
+ issues: {
+ deprecated: "octokit.search.issues() has been renamed to octokit.search.issuesAndPullRequests() (2018-12-27)",
+ method: "GET",
+ params: {
+ order: {
+ enum: ["desc", "asc"],
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ q: {
+ required: true,
+ type: "string"
+ },
+ sort: {
+ enum: ["comments", "reactions", "reactions-+1", "reactions--1", "reactions-smile", "reactions-thinking_face", "reactions-heart", "reactions-tada", "interactions", "created", "updated"],
+ type: "string"
+ }
+ },
+ url: "/search/issues"
+ },
+ issuesAndPullRequests: {
+ method: "GET",
+ params: {
+ order: {
+ enum: ["desc", "asc"],
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ q: {
+ required: true,
+ type: "string"
+ },
+ sort: {
+ enum: ["comments", "reactions", "reactions-+1", "reactions--1", "reactions-smile", "reactions-thinking_face", "reactions-heart", "reactions-tada", "interactions", "created", "updated"],
+ type: "string"
+ }
+ },
+ url: "/search/issues"
+ },
+ labels: {
+ method: "GET",
+ params: {
+ order: {
+ enum: ["desc", "asc"],
+ type: "string"
+ },
+ q: {
+ required: true,
+ type: "string"
+ },
+ repository_id: {
+ required: true,
+ type: "integer"
+ },
+ sort: {
+ enum: ["created", "updated"],
+ type: "string"
+ }
+ },
+ url: "/search/labels"
+ },
+ repos: {
+ method: "GET",
+ params: {
+ order: {
+ enum: ["desc", "asc"],
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ q: {
+ required: true,
+ type: "string"
+ },
+ sort: {
+ enum: ["stars", "forks", "help-wanted-issues", "updated"],
+ type: "string"
+ }
+ },
+ url: "/search/repositories"
+ },
+ topics: {
+ method: "GET",
+ params: {
+ q: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/search/topics"
+ },
+ users: {
+ method: "GET",
+ params: {
+ order: {
+ enum: ["desc", "asc"],
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ q: {
+ required: true,
+ type: "string"
+ },
+ sort: {
+ enum: ["followers", "repositories", "joined"],
+ type: "string"
+ }
+ },
+ url: "/search/users"
+ }
+ },
+ teams: {
+ addMember: {
+ deprecated: "octokit.teams.addMember() has been renamed to octokit.teams.addMemberLegacy() (2020-01-16)",
+ method: "PUT",
+ params: {
+ team_id: {
+ required: true,
+ type: "integer"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/teams/:team_id/members/:username"
+ },
+ addMemberLegacy: {
+ deprecated: "octokit.teams.addMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy",
+ method: "PUT",
+ params: {
+ team_id: {
+ required: true,
+ type: "integer"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/teams/:team_id/members/:username"
+ },
+ addOrUpdateMembership: {
+ deprecated: "octokit.teams.addOrUpdateMembership() has been renamed to octokit.teams.addOrUpdateMembershipLegacy() (2020-01-16)",
+ method: "PUT",
+ params: {
+ role: {
+ enum: ["member", "maintainer"],
+ type: "string"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/teams/:team_id/memberships/:username"
+ },
+ addOrUpdateMembershipInOrg: {
+ method: "PUT",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ role: {
+ enum: ["member", "maintainer"],
+ type: "string"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/memberships/:username"
+ },
+ addOrUpdateMembershipLegacy: {
+ deprecated: "octokit.teams.addOrUpdateMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy",
+ method: "PUT",
+ params: {
+ role: {
+ enum: ["member", "maintainer"],
+ type: "string"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/teams/:team_id/memberships/:username"
+ },
+ addOrUpdateProject: {
+ deprecated: "octokit.teams.addOrUpdateProject() has been renamed to octokit.teams.addOrUpdateProjectLegacy() (2020-01-16)",
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "PUT",
+ params: {
+ permission: {
+ enum: ["read", "write", "admin"],
+ type: "string"
+ },
+ project_id: {
+ required: true,
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/projects/:project_id"
+ },
+ addOrUpdateProjectInOrg: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "PUT",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ permission: {
+ enum: ["read", "write", "admin"],
+ type: "string"
+ },
+ project_id: {
+ required: true,
+ type: "integer"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/projects/:project_id"
+ },
+ addOrUpdateProjectLegacy: {
+ deprecated: "octokit.teams.addOrUpdateProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy",
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "PUT",
+ params: {
+ permission: {
+ enum: ["read", "write", "admin"],
+ type: "string"
+ },
+ project_id: {
+ required: true,
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/projects/:project_id"
+ },
+ addOrUpdateRepo: {
+ deprecated: "octokit.teams.addOrUpdateRepo() has been renamed to octokit.teams.addOrUpdateRepoLegacy() (2020-01-16)",
+ method: "PUT",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ permission: {
+ enum: ["pull", "push", "admin"],
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/repos/:owner/:repo"
+ },
+ addOrUpdateRepoInOrg: {
+ method: "PUT",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ permission: {
+ enum: ["pull", "push", "admin"],
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"
+ },
+ addOrUpdateRepoLegacy: {
+ deprecated: "octokit.teams.addOrUpdateRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy",
+ method: "PUT",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ permission: {
+ enum: ["pull", "push", "admin"],
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/repos/:owner/:repo"
+ },
+ checkManagesRepo: {
+ deprecated: "octokit.teams.checkManagesRepo() has been renamed to octokit.teams.checkManagesRepoLegacy() (2020-01-16)",
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/repos/:owner/:repo"
+ },
+ checkManagesRepoInOrg: {
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"
+ },
+ checkManagesRepoLegacy: {
+ deprecated: "octokit.teams.checkManagesRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy",
+ method: "GET",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/repos/:owner/:repo"
+ },
+ create: {
+ method: "POST",
+ params: {
+ description: {
+ type: "string"
+ },
+ maintainers: {
+ type: "string[]"
+ },
+ name: {
+ required: true,
+ type: "string"
+ },
+ org: {
+ required: true,
+ type: "string"
+ },
+ parent_team_id: {
+ type: "integer"
+ },
+ permission: {
+ enum: ["pull", "push", "admin"],
+ type: "string"
+ },
+ privacy: {
+ enum: ["secret", "closed"],
+ type: "string"
+ },
+ repo_names: {
+ type: "string[]"
+ }
+ },
+ url: "/orgs/:org/teams"
+ },
+ createDiscussion: {
+ deprecated: "octokit.teams.createDiscussion() has been renamed to octokit.teams.createDiscussionLegacy() (2020-01-16)",
+ method: "POST",
+ params: {
+ body: {
+ required: true,
+ type: "string"
+ },
+ private: {
+ type: "boolean"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ },
+ title: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/teams/:team_id/discussions"
+ },
+ createDiscussionComment: {
+ deprecated: "octokit.teams.createDiscussionComment() has been renamed to octokit.teams.createDiscussionCommentLegacy() (2020-01-16)",
+ method: "POST",
+ params: {
+ body: {
+ required: true,
+ type: "string"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/discussions/:discussion_number/comments"
+ },
+ createDiscussionCommentInOrg: {
+ method: "POST",
+ params: {
+ body: {
+ required: true,
+ type: "string"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ org: {
+ required: true,
+ type: "string"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"
+ },
+ createDiscussionCommentLegacy: {
+ deprecated: "octokit.teams.createDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy",
+ method: "POST",
+ params: {
+ body: {
+ required: true,
+ type: "string"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/discussions/:discussion_number/comments"
+ },
+ createDiscussionInOrg: {
+ method: "POST",
+ params: {
+ body: {
+ required: true,
+ type: "string"
+ },
+ org: {
+ required: true,
+ type: "string"
+ },
+ private: {
+ type: "boolean"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ },
+ title: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/discussions"
+ },
+ createDiscussionLegacy: {
+ deprecated: "octokit.teams.createDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy",
+ method: "POST",
+ params: {
+ body: {
+ required: true,
+ type: "string"
+ },
+ private: {
+ type: "boolean"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ },
+ title: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/teams/:team_id/discussions"
+ },
+ delete: {
+ deprecated: "octokit.teams.delete() has been renamed to octokit.teams.deleteLegacy() (2020-01-16)",
+ method: "DELETE",
+ params: {
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id"
+ },
+ deleteDiscussion: {
+ deprecated: "octokit.teams.deleteDiscussion() has been renamed to octokit.teams.deleteDiscussionLegacy() (2020-01-16)",
+ method: "DELETE",
+ params: {
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/discussions/:discussion_number"
+ },
+ deleteDiscussionComment: {
+ deprecated: "octokit.teams.deleteDiscussionComment() has been renamed to octokit.teams.deleteDiscussionCommentLegacy() (2020-01-16)",
+ method: "DELETE",
+ params: {
+ comment_number: {
+ required: true,
+ type: "integer"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
+ },
+ deleteDiscussionCommentInOrg: {
+ method: "DELETE",
+ params: {
+ comment_number: {
+ required: true,
+ type: "integer"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ org: {
+ required: true,
+ type: "string"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"
+ },
+ deleteDiscussionCommentLegacy: {
+ deprecated: "octokit.teams.deleteDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy",
+ method: "DELETE",
+ params: {
+ comment_number: {
+ required: true,
+ type: "integer"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
+ },
+ deleteDiscussionInOrg: {
+ method: "DELETE",
+ params: {
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ org: {
+ required: true,
+ type: "string"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"
+ },
+ deleteDiscussionLegacy: {
+ deprecated: "octokit.teams.deleteDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy",
+ method: "DELETE",
+ params: {
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/discussions/:discussion_number"
+ },
+ deleteInOrg: {
+ method: "DELETE",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug"
+ },
+ deleteLegacy: {
+ deprecated: "octokit.teams.deleteLegacy() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy",
+ method: "DELETE",
+ params: {
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id"
+ },
+ get: {
+ deprecated: "octokit.teams.get() has been renamed to octokit.teams.getLegacy() (2020-01-16)",
+ method: "GET",
+ params: {
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id"
+ },
+ getByName: {
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug"
+ },
+ getDiscussion: {
+ deprecated: "octokit.teams.getDiscussion() has been renamed to octokit.teams.getDiscussionLegacy() (2020-01-16)",
+ method: "GET",
+ params: {
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/discussions/:discussion_number"
+ },
+ getDiscussionComment: {
+ deprecated: "octokit.teams.getDiscussionComment() has been renamed to octokit.teams.getDiscussionCommentLegacy() (2020-01-16)",
+ method: "GET",
+ params: {
+ comment_number: {
+ required: true,
+ type: "integer"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
+ },
+ getDiscussionCommentInOrg: {
+ method: "GET",
+ params: {
+ comment_number: {
+ required: true,
+ type: "integer"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ org: {
+ required: true,
+ type: "string"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"
+ },
+ getDiscussionCommentLegacy: {
+ deprecated: "octokit.teams.getDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy",
+ method: "GET",
+ params: {
+ comment_number: {
+ required: true,
+ type: "integer"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
+ },
+ getDiscussionInOrg: {
+ method: "GET",
+ params: {
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ org: {
+ required: true,
+ type: "string"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"
+ },
+ getDiscussionLegacy: {
+ deprecated: "octokit.teams.getDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy",
+ method: "GET",
+ params: {
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/discussions/:discussion_number"
+ },
+ getLegacy: {
+ deprecated: "octokit.teams.getLegacy() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy",
+ method: "GET",
+ params: {
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id"
+ },
+ getMember: {
+ deprecated: "octokit.teams.getMember() has been renamed to octokit.teams.getMemberLegacy() (2020-01-16)",
+ method: "GET",
+ params: {
+ team_id: {
+ required: true,
+ type: "integer"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/teams/:team_id/members/:username"
+ },
+ getMemberLegacy: {
+ deprecated: "octokit.teams.getMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy",
+ method: "GET",
+ params: {
+ team_id: {
+ required: true,
+ type: "integer"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/teams/:team_id/members/:username"
+ },
+ getMembership: {
+ deprecated: "octokit.teams.getMembership() has been renamed to octokit.teams.getMembershipLegacy() (2020-01-16)",
+ method: "GET",
+ params: {
+ team_id: {
+ required: true,
+ type: "integer"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/teams/:team_id/memberships/:username"
+ },
+ getMembershipInOrg: {
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/memberships/:username"
+ },
+ getMembershipLegacy: {
+ deprecated: "octokit.teams.getMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy",
+ method: "GET",
+ params: {
+ team_id: {
+ required: true,
+ type: "integer"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/teams/:team_id/memberships/:username"
+ },
+ list: {
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/orgs/:org/teams"
+ },
+ listChild: {
+ deprecated: "octokit.teams.listChild() has been renamed to octokit.teams.listChildLegacy() (2020-01-16)",
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/teams"
+ },
+ listChildInOrg: {
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/teams"
+ },
+ listChildLegacy: {
+ deprecated: "octokit.teams.listChildLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy",
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/teams"
+ },
+ listDiscussionComments: {
+ deprecated: "octokit.teams.listDiscussionComments() has been renamed to octokit.teams.listDiscussionCommentsLegacy() (2020-01-16)",
+ method: "GET",
+ params: {
+ direction: {
+ enum: ["asc", "desc"],
+ type: "string"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/discussions/:discussion_number/comments"
+ },
+ listDiscussionCommentsInOrg: {
+ method: "GET",
+ params: {
+ direction: {
+ enum: ["asc", "desc"],
+ type: "string"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ org: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"
+ },
+ listDiscussionCommentsLegacy: {
+ deprecated: "octokit.teams.listDiscussionCommentsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy",
+ method: "GET",
+ params: {
+ direction: {
+ enum: ["asc", "desc"],
+ type: "string"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/discussions/:discussion_number/comments"
+ },
+ listDiscussions: {
+ deprecated: "octokit.teams.listDiscussions() has been renamed to octokit.teams.listDiscussionsLegacy() (2020-01-16)",
+ method: "GET",
+ params: {
+ direction: {
+ enum: ["asc", "desc"],
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/discussions"
+ },
+ listDiscussionsInOrg: {
+ method: "GET",
+ params: {
+ direction: {
+ enum: ["asc", "desc"],
+ type: "string"
+ },
+ org: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/discussions"
+ },
+ listDiscussionsLegacy: {
+ deprecated: "octokit.teams.listDiscussionsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy",
+ method: "GET",
+ params: {
+ direction: {
+ enum: ["asc", "desc"],
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/discussions"
+ },
+ listForAuthenticatedUser: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/user/teams"
+ },
+ listMembers: {
+ deprecated: "octokit.teams.listMembers() has been renamed to octokit.teams.listMembersLegacy() (2020-01-16)",
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ role: {
+ enum: ["member", "maintainer", "all"],
+ type: "string"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/members"
+ },
+ listMembersInOrg: {
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ role: {
+ enum: ["member", "maintainer", "all"],
+ type: "string"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/members"
+ },
+ listMembersLegacy: {
+ deprecated: "octokit.teams.listMembersLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy",
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ role: {
+ enum: ["member", "maintainer", "all"],
+ type: "string"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/members"
+ },
+ listPendingInvitations: {
+ deprecated: "octokit.teams.listPendingInvitations() has been renamed to octokit.teams.listPendingInvitationsLegacy() (2020-01-16)",
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/invitations"
+ },
+ listPendingInvitationsInOrg: {
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/invitations"
+ },
+ listPendingInvitationsLegacy: {
+ deprecated: "octokit.teams.listPendingInvitationsLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy",
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/invitations"
+ },
+ listProjects: {
+ deprecated: "octokit.teams.listProjects() has been renamed to octokit.teams.listProjectsLegacy() (2020-01-16)",
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/projects"
+ },
+ listProjectsInOrg: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/projects"
+ },
+ listProjectsLegacy: {
+ deprecated: "octokit.teams.listProjectsLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy",
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/projects"
+ },
+ listRepos: {
+ deprecated: "octokit.teams.listRepos() has been renamed to octokit.teams.listReposLegacy() (2020-01-16)",
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/repos"
+ },
+ listReposInOrg: {
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/repos"
+ },
+ listReposLegacy: {
+ deprecated: "octokit.teams.listReposLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy",
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/repos"
+ },
+ removeMember: {
+ deprecated: "octokit.teams.removeMember() has been renamed to octokit.teams.removeMemberLegacy() (2020-01-16)",
+ method: "DELETE",
+ params: {
+ team_id: {
+ required: true,
+ type: "integer"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/teams/:team_id/members/:username"
+ },
+ removeMemberLegacy: {
+ deprecated: "octokit.teams.removeMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member-legacy",
+ method: "DELETE",
+ params: {
+ team_id: {
+ required: true,
+ type: "integer"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/teams/:team_id/members/:username"
+ },
+ removeMembership: {
+ deprecated: "octokit.teams.removeMembership() has been renamed to octokit.teams.removeMembershipLegacy() (2020-01-16)",
+ method: "DELETE",
+ params: {
+ team_id: {
+ required: true,
+ type: "integer"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/teams/:team_id/memberships/:username"
+ },
+ removeMembershipInOrg: {
+ method: "DELETE",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/memberships/:username"
+ },
+ removeMembershipLegacy: {
+ deprecated: "octokit.teams.removeMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy",
+ method: "DELETE",
+ params: {
+ team_id: {
+ required: true,
+ type: "integer"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/teams/:team_id/memberships/:username"
+ },
+ removeProject: {
+ deprecated: "octokit.teams.removeProject() has been renamed to octokit.teams.removeProjectLegacy() (2020-01-16)",
+ method: "DELETE",
+ params: {
+ project_id: {
+ required: true,
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/projects/:project_id"
+ },
+ removeProjectInOrg: {
+ method: "DELETE",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ project_id: {
+ required: true,
+ type: "integer"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/projects/:project_id"
+ },
+ removeProjectLegacy: {
+ deprecated: "octokit.teams.removeProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy",
+ method: "DELETE",
+ params: {
+ project_id: {
+ required: true,
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/projects/:project_id"
+ },
+ removeRepo: {
+ deprecated: "octokit.teams.removeRepo() has been renamed to octokit.teams.removeRepoLegacy() (2020-01-16)",
+ method: "DELETE",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/repos/:owner/:repo"
+ },
+ removeRepoInOrg: {
+ method: "DELETE",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"
+ },
+ removeRepoLegacy: {
+ deprecated: "octokit.teams.removeRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy",
+ method: "DELETE",
+ params: {
+ owner: {
+ required: true,
+ type: "string"
+ },
+ repo: {
+ required: true,
+ type: "string"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/repos/:owner/:repo"
+ },
+ reviewProject: {
+ deprecated: "octokit.teams.reviewProject() has been renamed to octokit.teams.reviewProjectLegacy() (2020-01-16)",
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "GET",
+ params: {
+ project_id: {
+ required: true,
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/projects/:project_id"
+ },
+ reviewProjectInOrg: {
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "GET",
+ params: {
+ org: {
+ required: true,
+ type: "string"
+ },
+ project_id: {
+ required: true,
+ type: "integer"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/projects/:project_id"
+ },
+ reviewProjectLegacy: {
+ deprecated: "octokit.teams.reviewProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy",
+ headers: {
+ accept: "application/vnd.github.inertia-preview+json"
+ },
+ method: "GET",
+ params: {
+ project_id: {
+ required: true,
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/projects/:project_id"
+ },
+ update: {
+ deprecated: "octokit.teams.update() has been renamed to octokit.teams.updateLegacy() (2020-01-16)",
+ method: "PATCH",
+ params: {
+ description: {
+ type: "string"
+ },
+ name: {
+ required: true,
+ type: "string"
+ },
+ parent_team_id: {
+ type: "integer"
+ },
+ permission: {
+ enum: ["pull", "push", "admin"],
+ type: "string"
+ },
+ privacy: {
+ enum: ["secret", "closed"],
+ type: "string"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id"
+ },
+ updateDiscussion: {
+ deprecated: "octokit.teams.updateDiscussion() has been renamed to octokit.teams.updateDiscussionLegacy() (2020-01-16)",
+ method: "PATCH",
+ params: {
+ body: {
+ type: "string"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ },
+ title: {
+ type: "string"
+ }
+ },
+ url: "/teams/:team_id/discussions/:discussion_number"
+ },
+ updateDiscussionComment: {
+ deprecated: "octokit.teams.updateDiscussionComment() has been renamed to octokit.teams.updateDiscussionCommentLegacy() (2020-01-16)",
+ method: "PATCH",
+ params: {
+ body: {
+ required: true,
+ type: "string"
+ },
+ comment_number: {
+ required: true,
+ type: "integer"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
+ },
+ updateDiscussionCommentInOrg: {
+ method: "PATCH",
+ params: {
+ body: {
+ required: true,
+ type: "string"
+ },
+ comment_number: {
+ required: true,
+ type: "integer"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ org: {
+ required: true,
+ type: "string"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"
+ },
+ updateDiscussionCommentLegacy: {
+ deprecated: "octokit.teams.updateDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy",
+ method: "PATCH",
+ params: {
+ body: {
+ required: true,
+ type: "string"
+ },
+ comment_number: {
+ required: true,
+ type: "integer"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
+ },
+ updateDiscussionInOrg: {
+ method: "PATCH",
+ params: {
+ body: {
+ type: "string"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ org: {
+ required: true,
+ type: "string"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ },
+ title: {
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"
+ },
+ updateDiscussionLegacy: {
+ deprecated: "octokit.teams.updateDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy",
+ method: "PATCH",
+ params: {
+ body: {
+ type: "string"
+ },
+ discussion_number: {
+ required: true,
+ type: "integer"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ },
+ title: {
+ type: "string"
+ }
+ },
+ url: "/teams/:team_id/discussions/:discussion_number"
+ },
+ updateInOrg: {
+ method: "PATCH",
+ params: {
+ description: {
+ type: "string"
+ },
+ name: {
+ required: true,
+ type: "string"
+ },
+ org: {
+ required: true,
+ type: "string"
+ },
+ parent_team_id: {
+ type: "integer"
+ },
+ permission: {
+ enum: ["pull", "push", "admin"],
+ type: "string"
+ },
+ privacy: {
+ enum: ["secret", "closed"],
+ type: "string"
+ },
+ team_slug: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/orgs/:org/teams/:team_slug"
+ },
+ updateLegacy: {
+ deprecated: "octokit.teams.updateLegacy() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy",
+ method: "PATCH",
+ params: {
+ description: {
+ type: "string"
+ },
+ name: {
+ required: true,
+ type: "string"
+ },
+ parent_team_id: {
+ type: "integer"
+ },
+ permission: {
+ enum: ["pull", "push", "admin"],
+ type: "string"
+ },
+ privacy: {
+ enum: ["secret", "closed"],
+ type: "string"
+ },
+ team_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/teams/:team_id"
+ }
+ },
+ users: {
+ addEmails: {
+ method: "POST",
+ params: {
+ emails: {
+ required: true,
+ type: "string[]"
+ }
+ },
+ url: "/user/emails"
+ },
+ block: {
+ method: "PUT",
+ params: {
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/user/blocks/:username"
+ },
+ checkBlocked: {
+ method: "GET",
+ params: {
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/user/blocks/:username"
+ },
+ checkFollowing: {
+ method: "GET",
+ params: {
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/user/following/:username"
+ },
+ checkFollowingForUser: {
+ method: "GET",
+ params: {
+ target_user: {
+ required: true,
+ type: "string"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/users/:username/following/:target_user"
+ },
+ createGpgKey: {
+ method: "POST",
+ params: {
+ armored_public_key: {
+ type: "string"
+ }
+ },
+ url: "/user/gpg_keys"
+ },
+ createPublicKey: {
+ method: "POST",
+ params: {
+ key: {
+ type: "string"
+ },
+ title: {
+ type: "string"
+ }
+ },
+ url: "/user/keys"
+ },
+ deleteEmails: {
+ method: "DELETE",
+ params: {
+ emails: {
+ required: true,
+ type: "string[]"
+ }
+ },
+ url: "/user/emails"
+ },
+ deleteGpgKey: {
+ method: "DELETE",
+ params: {
+ gpg_key_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/user/gpg_keys/:gpg_key_id"
+ },
+ deletePublicKey: {
+ method: "DELETE",
+ params: {
+ key_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/user/keys/:key_id"
+ },
+ follow: {
+ method: "PUT",
+ params: {
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/user/following/:username"
+ },
+ getAuthenticated: {
+ method: "GET",
+ params: {},
+ url: "/user"
+ },
+ getByUsername: {
+ method: "GET",
+ params: {
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/users/:username"
+ },
+ getContextForUser: {
+ method: "GET",
+ params: {
+ subject_id: {
+ type: "string"
+ },
+ subject_type: {
+ enum: ["organization", "repository", "issue", "pull_request"],
+ type: "string"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/users/:username/hovercard"
+ },
+ getGpgKey: {
+ method: "GET",
+ params: {
+ gpg_key_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/user/gpg_keys/:gpg_key_id"
+ },
+ getPublicKey: {
+ method: "GET",
+ params: {
+ key_id: {
+ required: true,
+ type: "integer"
+ }
+ },
+ url: "/user/keys/:key_id"
+ },
+ list: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ since: {
+ type: "string"
+ }
+ },
+ url: "/users"
+ },
+ listBlocked: {
+ method: "GET",
+ params: {},
+ url: "/user/blocks"
+ },
+ listEmails: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/user/emails"
+ },
+ listFollowersForAuthenticatedUser: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/user/followers"
+ },
+ listFollowersForUser: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/users/:username/followers"
+ },
+ listFollowingForAuthenticatedUser: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/user/following"
+ },
+ listFollowingForUser: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/users/:username/following"
+ },
+ listGpgKeys: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/user/gpg_keys"
+ },
+ listGpgKeysForUser: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/users/:username/gpg_keys"
+ },
+ listPublicEmails: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/user/public_emails"
+ },
+ listPublicKeys: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ }
+ },
+ url: "/user/keys"
+ },
+ listPublicKeysForUser: {
+ method: "GET",
+ params: {
+ page: {
+ type: "integer"
+ },
+ per_page: {
+ type: "integer"
+ },
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/users/:username/keys"
+ },
+ togglePrimaryEmailVisibility: {
+ method: "PATCH",
+ params: {
+ email: {
+ required: true,
+ type: "string"
+ },
+ visibility: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/user/email/visibility"
+ },
+ unblock: {
+ method: "DELETE",
+ params: {
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/user/blocks/:username"
+ },
+ unfollow: {
+ method: "DELETE",
+ params: {
+ username: {
+ required: true,
+ type: "string"
+ }
+ },
+ url: "/user/following/:username"
+ },
+ updateAuthenticated: {
+ method: "PATCH",
+ params: {
+ bio: {
+ type: "string"
+ },
+ blog: {
+ type: "string"
+ },
+ company: {
+ type: "string"
+ },
+ email: {
+ type: "string"
+ },
+ hireable: {
+ type: "boolean"
+ },
+ location: {
+ type: "string"
+ },
+ name: {
+ type: "string"
+ }
+ },
+ url: "/user"
+ }
+ }
+};
+
+const VERSION = "2.4.0";
+
+function registerEndpoints(octokit, routes) {
+ Object.keys(routes).forEach(namespaceName => {
+ if (!octokit[namespaceName]) {
+ octokit[namespaceName] = {};
+ }
+
+ Object.keys(routes[namespaceName]).forEach(apiName => {
+ const apiOptions = routes[namespaceName][apiName];
+ const endpointDefaults = ["method", "url", "headers"].reduce((map, key) => {
+ if (typeof apiOptions[key] !== "undefined") {
+ map[key] = apiOptions[key];
+ }
+
+ return map;
+ }, {});
+ endpointDefaults.request = {
+ validate: apiOptions.params
+ };
+ let request = octokit.request.defaults(endpointDefaults); // patch request & endpoint methods to support deprecated parameters.
+ // Not the most elegant solution, but we don’t want to move deprecation
+ // logic into octokit/endpoint.js as it’s out of scope
+
+ const hasDeprecatedParam = Object.keys(apiOptions.params || {}).find(key => apiOptions.params[key].deprecated);
+
+ if (hasDeprecatedParam) {
+ const patch = patchForDeprecation.bind(null, octokit, apiOptions);
+ request = patch(octokit.request.defaults(endpointDefaults), `.${namespaceName}.${apiName}()`);
+ request.endpoint = patch(request.endpoint, `.${namespaceName}.${apiName}.endpoint()`);
+ request.endpoint.merge = patch(request.endpoint.merge, `.${namespaceName}.${apiName}.endpoint.merge()`);
+ }
+
+ if (apiOptions.deprecated) {
+ octokit[namespaceName][apiName] = Object.assign(function deprecatedEndpointMethod() {
+ octokit.log.warn(new deprecation.Deprecation(`[@octokit/rest] ${apiOptions.deprecated}`));
+ octokit[namespaceName][apiName] = request;
+ return request.apply(null, arguments);
+ }, request);
+ return;
+ }
+
+ octokit[namespaceName][apiName] = request;
+ });
+ });
+}
+
+function patchForDeprecation(octokit, apiOptions, method, methodName) {
+ const patchedMethod = options => {
+ options = Object.assign({}, options);
+ Object.keys(options).forEach(key => {
+ if (apiOptions.params[key] && apiOptions.params[key].deprecated) {
+ const aliasKey = apiOptions.params[key].alias;
+ octokit.log.warn(new deprecation.Deprecation(`[@octokit/rest] "${key}" parameter is deprecated for "${methodName}". Use "${aliasKey}" instead`));
+
+ if (!(aliasKey in options)) {
+ options[aliasKey] = options[key];
+ }
+
+ delete options[key];
+ }
+ });
+ return method(options);
+ };
+
+ Object.keys(method).forEach(key => {
+ patchedMethod[key] = method[key];
+ });
+ return patchedMethod;
+}
+
+/**
+ * This plugin is a 1:1 copy of internal @octokit/rest plugins. The primary
+ * goal is to rebuild @octokit/rest on top of @octokit/core. Once that is
+ * done, we will remove the registerEndpoints methods and return the methods
+ * directly as with the other plugins. At that point we will also remove the
+ * legacy workarounds and deprecations.
+ *
+ * See the plan at
+ * https://github.com/octokit/plugin-rest-endpoint-methods.js/pull/1
+ */
+
+function restEndpointMethods(octokit) {
+ // @ts-ignore
+ octokit.registerEndpoints = registerEndpoints.bind(null, octokit);
+ registerEndpoints(octokit, endpointsByScope); // Aliasing scopes for backward compatibility
+ // See https://github.com/octokit/rest.js/pull/1134
+
+ [["gitdata", "git"], ["authorization", "oauthAuthorizations"], ["pullRequests", "pulls"]].forEach(([deprecatedScope, scope]) => {
+ Object.defineProperty(octokit, deprecatedScope, {
+ get() {
+ octokit.log.warn( // @ts-ignore
+ new deprecation.Deprecation(`[@octokit/plugin-rest-endpoint-methods] "octokit.${deprecatedScope}.*" methods are deprecated, use "octokit.${scope}.*" instead`)); // @ts-ignore
+
+ return octokit[scope];
+ }
+
+ });
+ });
+ return {};
+}
+restEndpointMethods.VERSION = VERSION;
+
+exports.restEndpointMethods = restEndpointMethods;
+//# sourceMappingURL=index.js.map
+
+
+/***/ }),
+/* 843 */,
+/* 844 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(14);
+const v1beta2_1 = __webpack_require__(273);
+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
+
+/***/ }),
+/* 845 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 846 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(525);
+const v1beta1_1 = __webpack_require__(868);
+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
+
+/***/ }),
+/* 847 */,
+/* 848 */,
+/* 849 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(174);
+const v1alpha_1 = __webpack_require__(810);
+const v1beta_1 = __webpack_require__(381);
+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
+
+/***/ }),
+/* 850 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+module.exports = paginationMethodsPlugin
+
+function paginationMethodsPlugin (octokit) {
+ octokit.getFirstPage = __webpack_require__(777).bind(null, octokit)
+ octokit.getLastPage = __webpack_require__(649).bind(null, octokit)
+ octokit.getNextPage = __webpack_require__(550).bind(null, octokit)
+ octokit.getPreviousPage = __webpack_require__(563).bind(null, octokit)
+ octokit.hasFirstPage = __webpack_require__(536)
+ octokit.hasLastPage = __webpack_require__(336)
+ octokit.hasNextPage = __webpack_require__(929)
+ octokit.hasPreviousPage = __webpack_require__(558)
+}
+
+
+/***/ }),
+/* 851 */
+/***/ (function(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;
+
+
+/***/ }),
+/* 852 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+"use strict";
+
+
+var replace = String.prototype.replace;
+var percentTwenties = /%20/g;
+
+var util = __webpack_require__(567);
+
+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
+);
+
+
+/***/ }),
+/* 853 */,
+/* 854 */
+/***/ (function(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 `TypeError` message for "Functions" methods. */
+var FUNC_ERROR_TEXT = 'Expected a function';
+
+/** 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;
+
+/** `Object#toString` result references. */
+var funcTag = '[object Function]',
+ genTag = '[object GeneratorFunction]',
+ symbolTag = '[object Symbol]';
+
+/** Used to match property names within property paths. */
+var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
+ reIsPlainProp = /^\w*$/,
+ reLeadingDot = /^\./,
+ rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
+
+/**
+ * Used to match `RegExp`
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
+ */
+var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
+
+/** Used to match backslashes in property paths. */
+var reEscapeChar = /\\(\\)?/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')();
+
+/**
+ * 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,
+ splice = arrayProto.splice;
+
+/* Built-in method references that are verified to be native. */
+var Map = getNative(root, 'Map'),
+ nativeCreate = getNative(Object, 'create');
+
+/** Used to convert symbols to primitives and strings. */
+var symbolProto = Symbol ? Symbol.prototype : undefined,
+ symbolToString = symbolProto ? symbolProto.toString : undefined;
+
+/**
+ * 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;
+
+/**
+ * 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 `_.get` without support for default values.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @param {Array|string} path The path of the property to get.
+ * @returns {*} Returns the resolved value.
+ */
+function baseGet(object, path) {
+ path = isKey(path, object) ? [path] : castPath(path);
+
+ var index = 0,
+ length = path.length;
+
+ while (object != null && index < length) {
+ object = object[toKey(path[index++])];
+ }
+ return (index && index == length) ? object : undefined;
+}
+
+/**
+ * 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 `_.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 (isSymbol(value)) {
+ return symbolToString ? symbolToString.call(value) : '';
+ }
+ var result = (value + '');
+ return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
+}
+
+/**
+ * Casts `value` to a path array if it's not one.
+ *
+ * @private
+ * @param {*} value The value to inspect.
+ * @returns {Array} Returns the cast property path array.
+ */
+function castPath(value) {
+ return isArray(value) ? value : stringToPath(value);
+}
+
+/**
+ * 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 property name and not a property path.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @param {Object} [object] The object to query keys on.
+ * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
+ */
+function isKey(value, object) {
+ if (isArray(value)) {
+ return false;
+ }
+ var type = typeof value;
+ if (type == 'number' || type == 'symbol' || type == 'boolean' ||
+ value == null || isSymbol(value)) {
+ return true;
+ }
+ return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
+ (object != null && value in Object(object));
+}
+
+/**
+ * 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 `string` to a property path array.
+ *
+ * @private
+ * @param {string} string The string to convert.
+ * @returns {Array} Returns the property path array.
+ */
+var stringToPath = memoize(function(string) {
+ string = toString(string);
+
+ var result = [];
+ if (reLeadingDot.test(string)) {
+ result.push('');
+ }
+ string.replace(rePropName, function(match, number, quote, string) {
+ result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
+ });
+ return result;
+});
+
+/**
+ * Converts `value` to a string key if it's not a string or symbol.
+ *
+ * @private
+ * @param {*} value The value to inspect.
+ * @returns {string|symbol} Returns the key.
+ */
+function toKey(value) {
+ if (typeof value == 'string' || isSymbol(value)) {
+ return value;
+ }
+ var result = (value + '');
+ return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
+}
+
+/**
+ * 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 a function that memoizes the result of `func`. If `resolver` is
+ * provided, it determines the cache key for storing the result based on the
+ * arguments provided to the memoized function. By default, the first argument
+ * provided to the memoized function is used as the map cache key. The `func`
+ * is invoked with the `this` binding of the memoized function.
+ *
+ * **Note:** The cache is exposed as the `cache` property on the memoized
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
+ * constructor with one whose instances implement the
+ * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
+ * method interface of `delete`, `get`, `has`, and `set`.
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Function
+ * @param {Function} func The function to have its output memoized.
+ * @param {Function} [resolver] The function to resolve the cache key.
+ * @returns {Function} Returns the new memoized function.
+ * @example
+ *
+ * var object = { 'a': 1, 'b': 2 };
+ * var other = { 'c': 3, 'd': 4 };
+ *
+ * var values = _.memoize(_.values);
+ * values(object);
+ * // => [1, 2]
+ *
+ * values(other);
+ * // => [3, 4]
+ *
+ * object.a = 2;
+ * values(object);
+ * // => [1, 2]
+ *
+ * // Modify the result cache.
+ * values.cache.set(object, ['a', 'b']);
+ * values(object);
+ * // => ['a', 'b']
+ *
+ * // Replace `_.memoize.Cache`.
+ * _.memoize.Cache = WeakMap;
+ */
+function memoize(func, resolver) {
+ if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {
+ throw new TypeError(FUNC_ERROR_TEXT);
+ }
+ var memoized = function() {
+ var args = arguments,
+ key = resolver ? resolver.apply(this, args) : args[0],
+ cache = memoized.cache;
+
+ if (cache.has(key)) {
+ return cache.get(key);
+ }
+ var result = func.apply(this, args);
+ memoized.cache = cache.set(key, result);
+ return result;
+ };
+ memoized.cache = new (memoize.Cache || MapCache);
+ return memoized;
+}
+
+// Assign cache to `_.memoize`.
+memoize.Cache = MapCache;
+
+/**
+ * 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 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 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 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';
+}
+
+/**
+ * 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) && objectToString.call(value) == symbolTag);
+}
+
+/**
+ * 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 process.
+ * @returns {string} Returns the string.
+ * @example
+ *
+ * _.toString(null);
+ * // => ''
+ *
+ * _.toString(-0);
+ * // => '-0'
+ *
+ * _.toString([1, 2, 3]);
+ * // => '1,2,3'
+ */
+function toString(value) {
+ return value == null ? '' : baseToString(value);
+}
+
+/**
+ * Gets the value at `path` of `object`. If the resolved value is
+ * `undefined`, the `defaultValue` is returned in its place.
+ *
+ * @static
+ * @memberOf _
+ * @since 3.7.0
+ * @category Object
+ * @param {Object} object The object to query.
+ * @param {Array|string} path The path of the property to get.
+ * @param {*} [defaultValue] The value returned for `undefined` resolved values.
+ * @returns {*} Returns the resolved value.
+ * @example
+ *
+ * var object = { 'a': [{ 'b': { 'c': 3 } }] };
+ *
+ * _.get(object, 'a[0].b.c');
+ * // => 3
+ *
+ * _.get(object, ['a', '0', 'b', 'c']);
+ * // => 3
+ *
+ * _.get(object, 'a.b.c', 'default');
+ * // => 'default'
+ */
+function get(object, path, defaultValue) {
+ var result = object == null ? undefined : baseGet(object, path);
+ return result === undefined ? defaultValue : result;
+}
+
+module.exports = get;
+
+
+/***/ }),
+/* 855 */,
+/* 856 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+module.exports = __webpack_require__(141);
+
+
+/***/ }),
+/* 857 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 858 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 859 */,
+/* 860 */,
+/* 861 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+module.exports = registerPlugin;
+
+const factory = __webpack_require__(513);
+
+function registerPlugin(plugins, pluginFunction) {
+ return factory(
+ plugins.includes(pluginFunction) ? plugins : plugins.concat(pluginFunction)
+ );
+}
+
+
+/***/ }),
+/* 862 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, '__esModule', { value: true });
+
+function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
+
+var osName = _interopDefault(__webpack_require__(2));
+
+function getUserAgent() {
+ try {
+ return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`;
+ } catch (error) {
+ if (/wmic os get Caption/.test(error.message)) {
+ return "Windows ";
+ }
+
+ throw error;
+ }
+}
+
+exports.getUserAgent = getUserAgent;
+//# sourceMappingURL=index.js.map
+
+
+/***/ }),
+/* 863 */,
+/* 864 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(440);
+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
+
+/***/ }),
+/* 865 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v3_1 = __webpack_require__(879);
+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
+
+/***/ }),
+/* 866 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+"use strict";
+
+var shebangRegex = __webpack_require__(816);
+
+module.exports = function (str) {
+ var match = str.match(shebangRegex);
+
+ if (!match) {
+ return null;
+ }
+
+ var arr = match[0].replace(/#! ?/, '').split(' ');
+ var bin = arr[0].split('/').pop();
+ var arg = arr[1];
+
+ return (bin === 'env' ?
+ arg :
+ bin + (arg ? ' ' + arg : '')
+ );
+};
+
+
+/***/ }),
+/* 867 */
+/***/ (function(module) {
+
+module.exports = require("tty");
+
+/***/ }),
+/* 868 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 869 */,
+/* 870 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v2_1_1 = __webpack_require__(839);
+const v2_1 = __webpack_require__(475);
+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
+
+/***/ }),
+/* 871 */,
+/* 872 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1beta1_1 = __webpack_require__(350);
+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
+
+/***/ }),
+/* 873 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 874 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(759);
+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
+
+/***/ }),
+/* 875 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 876 */,
+/* 877 */
+/***/ (function(__unusedmodule, exports, __webpack_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(__webpack_require__(631));
+const tls_1 = __importDefault(__webpack_require__(16));
+const url_1 = __importDefault(__webpack_require__(835));
+const assert_1 = __importDefault(__webpack_require__(357));
+const debug_1 = __importDefault(__webpack_require__(377));
+const agent_base_1 = __webpack_require__(687);
+const parse_proxy_response_1 = __importDefault(__webpack_require__(767));
+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
+
+/***/ }),
+/* 878 */,
+/* 879 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 880 */,
+/* 881 */
+/***/ (function(module) {
+
+"use strict";
+
+
+const isWin = process.platform === 'win32';
+
+function notFoundError(original, syscall) {
+ return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
+ code: 'ENOENT',
+ errno: 'ENOENT',
+ syscall: `${syscall} ${original.command}`,
+ path: original.command,
+ spawnargs: original.args,
+ });
+}
+
+function hookChildProcess(cp, parsed) {
+ if (!isWin) {
+ return;
+ }
+
+ const originalEmit = cp.emit;
+
+ cp.emit = function (name, arg1) {
+ // If emitting "exit" event and exit code is 1, we need to check if
+ // the command exists and emit an "error" instead
+ // See https://github.com/IndigoUnited/node-cross-spawn/issues/16
+ if (name === 'exit') {
+ const err = verifyENOENT(arg1, parsed, 'spawn');
+
+ if (err) {
+ return originalEmit.call(cp, 'error', err);
+ }
+ }
+
+ return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params
+ };
+}
+
+function verifyENOENT(status, parsed) {
+ if (isWin && status === 1 && !parsed.file) {
+ return notFoundError(parsed.original, 'spawn');
+ }
+
+ return null;
+}
+
+function verifyENOENTSync(status, parsed) {
+ if (isWin && status === 1 && !parsed.file) {
+ return notFoundError(parsed.original, 'spawnSync');
+ }
+
+ return null;
+}
+
+module.exports = {
+ hookChildProcess,
+ verifyENOENT,
+ verifyENOENTSync,
+ notFoundError,
+};
+
+
+/***/ }),
+/* 882 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(12);
+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
+
+/***/ }),
+/* 883 */
+/***/ (function(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 `TypeError` message for "Functions" methods. */
+var FUNC_ERROR_TEXT = 'Expected a function';
+
+/** 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 funcTag = '[object Function]',
+ genTag = '[object GeneratorFunction]',
+ symbolTag = '[object Symbol]';
+
+/** Used to match property names within property paths. */
+var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
+ reIsPlainProp = /^\w*$/,
+ reLeadingDot = /^\./,
+ rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
+
+/**
+ * Used to match `RegExp`
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
+ */
+var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
+
+/** Used to match backslashes in property paths. */
+var reEscapeChar = /\\(\\)?/g;
+
+/** Used to detect host constructors (Safari). */
+var reIsHostCtor = /^\[object .+?Constructor\]$/;
+
+/** Used to detect unsigned integer values. */
+var reIsUint = /^(?:0|[1-9]\d*)$/;
+
+/** 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')();
+
+/**
+ * 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,
+ splice = arrayProto.splice;
+
+/* Built-in method references that are verified to be native. */
+var Map = getNative(root, 'Map'),
+ nativeCreate = getNative(Object, 'create');
+
+/** Used to convert symbols to primitives and strings. */
+var symbolProto = Symbol ? Symbol.prototype : undefined,
+ symbolToString = symbolProto ? symbolProto.toString : undefined;
+
+/**
+ * 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;
+
+/**
+ * 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;
+ }
+}
+
+/**
+ * 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 `_.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 `_.set`.
+ *
+ * @private
+ * @param {Object} object The object to modify.
+ * @param {Array|string} path The path of the property to set.
+ * @param {*} value The value to set.
+ * @param {Function} [customizer] The function to customize path creation.
+ * @returns {Object} Returns `object`.
+ */
+function baseSet(object, path, value, customizer) {
+ if (!isObject(object)) {
+ return object;
+ }
+ path = isKey(path, object) ? [path] : castPath(path);
+
+ var index = -1,
+ length = path.length,
+ lastIndex = length - 1,
+ nested = object;
+
+ while (nested != null && ++index < length) {
+ var key = toKey(path[index]),
+ newValue = value;
+
+ if (index != lastIndex) {
+ var objValue = nested[key];
+ newValue = customizer ? customizer(objValue, key, nested) : undefined;
+ if (newValue === undefined) {
+ newValue = isObject(objValue)
+ ? objValue
+ : (isIndex(path[index + 1]) ? [] : {});
+ }
+ }
+ assignValue(nested, key, newValue);
+ nested = nested[key];
+ }
+ return object;
+}
+
+/**
+ * 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 (isSymbol(value)) {
+ return symbolToString ? symbolToString.call(value) : '';
+ }
+ var result = (value + '');
+ return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
+}
+
+/**
+ * Casts `value` to a path array if it's not one.
+ *
+ * @private
+ * @param {*} value The value to inspect.
+ * @returns {Array} Returns the cast property path array.
+ */
+function castPath(value) {
+ return isArray(value) ? value : stringToPath(value);
+}
+
+/**
+ * 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 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 `value` is a property name and not a property path.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @param {Object} [object] The object to query keys on.
+ * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
+ */
+function isKey(value, object) {
+ if (isArray(value)) {
+ return false;
+ }
+ var type = typeof value;
+ if (type == 'number' || type == 'symbol' || type == 'boolean' ||
+ value == null || isSymbol(value)) {
+ return true;
+ }
+ return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
+ (object != null && value in Object(object));
+}
+
+/**
+ * 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 `string` to a property path array.
+ *
+ * @private
+ * @param {string} string The string to convert.
+ * @returns {Array} Returns the property path array.
+ */
+var stringToPath = memoize(function(string) {
+ string = toString(string);
+
+ var result = [];
+ if (reLeadingDot.test(string)) {
+ result.push('');
+ }
+ string.replace(rePropName, function(match, number, quote, string) {
+ result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
+ });
+ return result;
+});
+
+/**
+ * Converts `value` to a string key if it's not a string or symbol.
+ *
+ * @private
+ * @param {*} value The value to inspect.
+ * @returns {string|symbol} Returns the key.
+ */
+function toKey(value) {
+ if (typeof value == 'string' || isSymbol(value)) {
+ return value;
+ }
+ var result = (value + '');
+ return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
+}
+
+/**
+ * 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 a function that memoizes the result of `func`. If `resolver` is
+ * provided, it determines the cache key for storing the result based on the
+ * arguments provided to the memoized function. By default, the first argument
+ * provided to the memoized function is used as the map cache key. The `func`
+ * is invoked with the `this` binding of the memoized function.
+ *
+ * **Note:** The cache is exposed as the `cache` property on the memoized
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
+ * constructor with one whose instances implement the
+ * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
+ * method interface of `delete`, `get`, `has`, and `set`.
+ *
+ * @static
+ * @memberOf _
+ * @since 0.1.0
+ * @category Function
+ * @param {Function} func The function to have its output memoized.
+ * @param {Function} [resolver] The function to resolve the cache key.
+ * @returns {Function} Returns the new memoized function.
+ * @example
+ *
+ * var object = { 'a': 1, 'b': 2 };
+ * var other = { 'c': 3, 'd': 4 };
+ *
+ * var values = _.memoize(_.values);
+ * values(object);
+ * // => [1, 2]
+ *
+ * values(other);
+ * // => [3, 4]
+ *
+ * object.a = 2;
+ * values(object);
+ * // => [1, 2]
+ *
+ * // Modify the result cache.
+ * values.cache.set(object, ['a', 'b']);
+ * values(object);
+ * // => ['a', 'b']
+ *
+ * // Replace `_.memoize.Cache`.
+ * _.memoize.Cache = WeakMap;
+ */
+function memoize(func, resolver) {
+ if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {
+ throw new TypeError(FUNC_ERROR_TEXT);
+ }
+ var memoized = function() {
+ var args = arguments,
+ key = resolver ? resolver.apply(this, args) : args[0],
+ cache = memoized.cache;
+
+ if (cache.has(key)) {
+ return cache.get(key);
+ }
+ var result = func.apply(this, args);
+ memoized.cache = cache.set(key, result);
+ return result;
+ };
+ memoized.cache = new (memoize.Cache || MapCache);
+ return memoized;
+}
+
+// Assign cache to `_.memoize`.
+memoize.Cache = MapCache;
+
+/**
+ * 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 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 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 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';
+}
+
+/**
+ * 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) && objectToString.call(value) == symbolTag);
+}
+
+/**
+ * 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 process.
+ * @returns {string} Returns the string.
+ * @example
+ *
+ * _.toString(null);
+ * // => ''
+ *
+ * _.toString(-0);
+ * // => '-0'
+ *
+ * _.toString([1, 2, 3]);
+ * // => '1,2,3'
+ */
+function toString(value) {
+ return value == null ? '' : baseToString(value);
+}
+
+/**
+ * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
+ * it's created. Arrays are created for missing index properties while objects
+ * are created for all other missing properties. Use `_.setWith` to customize
+ * `path` creation.
+ *
+ * **Note:** This method mutates `object`.
+ *
+ * @static
+ * @memberOf _
+ * @since 3.7.0
+ * @category Object
+ * @param {Object} object The object to modify.
+ * @param {Array|string} path The path of the property to set.
+ * @param {*} value The value to set.
+ * @returns {Object} Returns `object`.
+ * @example
+ *
+ * var object = { 'a': [{ 'b': { 'c': 3 } }] };
+ *
+ * _.set(object, 'a[0].b.c', 4);
+ * console.log(object.a[0].b.c);
+ * // => 4
+ *
+ * _.set(object, ['x', '0', 'y', 'z'], 5);
+ * console.log(object.x[0].y.z);
+ * // => 5
+ */
+function set(object, path, value) {
+ return object == null ? object : baseSet(object, path, value);
+}
+
+module.exports = set;
+
+
+/***/ }),
+/* 884 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+"use strict";
+
+
+var utils = __webpack_require__(567);
+var formats = __webpack_require__(852);
+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 : '';
+};
+
+
+/***/ }),
+/* 885 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 886 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+"use strict";
+
+
+var utils = __webpack_require__(567);
+
+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);
+};
+
+
+/***/ }),
+/* 887 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v4_1 = __webpack_require__(181);
+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
+
+/***/ }),
+/* 888 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(94);
+const v1alpha1_1 = __webpack_require__(531);
+const v1beta1_1 = __webpack_require__(92);
+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
+
+/***/ }),
+/* 889 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 890 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+module.exports = authenticationPlugin;
+
+const { createTokenAuth } = __webpack_require__(813);
+const { Deprecation } = __webpack_require__(692);
+const once = __webpack_require__(969);
+
+const beforeRequest = __webpack_require__(414);
+const requestError = __webpack_require__(446);
+const validate = __webpack_require__(538);
+const withAuthorizationPrefix = __webpack_require__(85);
+
+const deprecateAuthBasic = once((log, deprecation) => log.warn(deprecation));
+const deprecateAuthObject = once((log, deprecation) => log.warn(deprecation));
+
+function authenticationPlugin(octokit, options) {
+ // If `options.authStrategy` is set then use it and pass in `options.auth`
+ if (options.authStrategy) {
+ const auth = options.authStrategy(options.auth);
+ octokit.hook.wrap("request", auth.hook);
+ octokit.auth = auth;
+ return;
+ }
+
+ // If neither `options.authStrategy` nor `options.auth` are set, the `octokit` instance
+ // is unauthenticated. The `octokit.auth()` method is a no-op and no request hook is registred.
+ if (!options.auth) {
+ octokit.auth = () =>
+ Promise.resolve({
+ type: "unauthenticated"
+ });
+ return;
+ }
+
+ const isBasicAuthString =
+ typeof options.auth === "string" &&
+ /^basic/.test(withAuthorizationPrefix(options.auth));
+
+ // If only `options.auth` is set to a string, use the default token authentication strategy.
+ if (typeof options.auth === "string" && !isBasicAuthString) {
+ const auth = createTokenAuth(options.auth);
+ octokit.hook.wrap("request", auth.hook);
+ octokit.auth = auth;
+ return;
+ }
+
+ // Otherwise log a deprecation message
+ const [deprecationMethod, deprecationMessapge] = isBasicAuthString
+ ? [
+ deprecateAuthBasic,
+ 'Setting the "new Octokit({ auth })" option to a Basic Auth string is deprecated. Use https://github.com/octokit/auth-basic.js instead. See (https://octokit.github.io/rest.js/#authentication)'
+ ]
+ : [
+ deprecateAuthObject,
+ 'Setting the "new Octokit({ auth })" option to an object without also setting the "authStrategy" option is deprecated and will be removed in v17. See (https://octokit.github.io/rest.js/#authentication)'
+ ];
+ deprecationMethod(
+ octokit.log,
+ new Deprecation("[@octokit/rest] " + deprecationMessapge)
+ );
+
+ octokit.auth = () =>
+ Promise.resolve({
+ type: "deprecated",
+ message: deprecationMessapge
+ });
+
+ validate(options.auth);
+
+ const state = {
+ octokit,
+ auth: options.auth
+ };
+
+ octokit.hook.before("request", beforeRequest.bind(null, state));
+ octokit.hook.error("request", requestError.bind(null, state));
+}
+
+
+/***/ }),
+/* 891 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+/**
+ * Cipher base API.
+ *
+ * @author Dave Longley
+ *
+ * Copyright (c) 2010-2014 Digital Bazaar, Inc.
+ */
+var forge = __webpack_require__(985);
+__webpack_require__(165);
+
+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;
+};
+
+
+/***/ }),
+/* 892 */
+/***/ (function(module, __unusedexports, __webpack_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 = __webpack_require__(985);
+__webpack_require__(452);
+__webpack_require__(688);
+__webpack_require__(165);
+
+var pkcs5 = forge.pkcs5 = forge.pkcs5 || {};
+
+var crypto;
+if(forge.util.isNodejs && !forge.options.usePureJavaScript) {
+ crypto = __webpack_require__(417);
+}
+
+/**
+ * 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();
+};
+
+
+/***/ }),
+/* 893 */,
+/* 894 */,
+/* 895 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 896 */,
+/* 897 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+
+var _crypto = _interopRequireDefault(__webpack_require__(417));
+
+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;
+
+/***/ }),
+/* 898 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, '__esModule', { value: true });
+
+var request = __webpack_require__(753);
+var universalUserAgent = __webpack_require__(862);
+
+const VERSION = "4.3.1";
+
+class GraphqlError extends Error {
+ constructor(request, response) {
+ const message = response.data.errors[0].message;
+ super(message);
+ Object.assign(this, response.data);
+ this.name = "GraphqlError";
+ this.request = request; // Maintains proper stack trace (only available on V8)
+
+ /* istanbul ignore next */
+
+ if (Error.captureStackTrace) {
+ Error.captureStackTrace(this, this.constructor);
+ }
+ }
+
+}
+
+const NON_VARIABLE_OPTIONS = ["method", "baseUrl", "url", "headers", "request", "query"];
+function graphql(request, query, options) {
+ options = typeof query === "string" ? options = Object.assign({
+ query
+ }, options) : options = query;
+ const requestOptions = Object.keys(options).reduce((result, key) => {
+ if (NON_VARIABLE_OPTIONS.includes(key)) {
+ result[key] = options[key];
+ return result;
+ }
+
+ if (!result.variables) {
+ result.variables = {};
+ }
+
+ result.variables[key] = options[key];
+ return result;
+ }, {});
+ return request(requestOptions).then(response => {
+ if (response.data.errors) {
+ throw new GraphqlError(requestOptions, {
+ data: response.data
+ });
+ }
+
+ return response.data.data;
+ });
+}
+
+function withDefaults(request$1, newDefaults) {
+ const newRequest = request$1.defaults(newDefaults);
+
+ const newApi = (query, options) => {
+ return graphql(newRequest, query, options);
+ };
+
+ return Object.assign(newApi, {
+ defaults: withDefaults.bind(null, newRequest),
+ endpoint: request.request.endpoint
+ });
+}
+
+const graphql$1 = withDefaults(request.request, {
+ headers: {
+ "user-agent": `octokit-graphql.js/${VERSION} ${universalUserAgent.getUserAgent()}`
+ },
+ method: "POST",
+ url: "/graphql"
+});
+function withCustomRequest(customRequest) {
+ return withDefaults(customRequest, {
+ method: "POST",
+ url: "/graphql"
+ });
+}
+
+exports.graphql = graphql$1;
+exports.withCustomRequest = withCustomRequest;
+//# sourceMappingURL=index.js.map
+
+
+/***/ }),
+/* 899 */,
+/* 900 */,
+/* 901 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 902 */,
+/* 903 */,
+/* 904 */,
+/* 905 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
-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);
- }
- }
-};
+/***/ }),
+/* 906 */,
+/* 907 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 908 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 909 */,
+/* 910 */,
+/* 911 */,
+/* 912 */,
+/* 913 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 914 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 915 */,
+/* 916 */
+/***/ (function(__unusedmodule, exports) {
+
+"use strict";
+
+
+Object.defineProperty(exports, '__esModule', { value: true });
+
+const VERSION = "1.0.0";
/**
- * Consume and convert an entire Body to a Buffer.
- *
- * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body
- *
- * @return Promise
+ * @param octokit Octokit instance
+ * @param options Options passed to Octokit constructor
*/
-function consumeBody() {
- var _this4 = this;
- if (this[INTERNALS].disturbed) {
- return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`));
- }
+function requestLog(octokit) {
+ octokit.hook.wrap("request", (request, options) => {
+ octokit.log.debug("request", options);
+ const start = Date.now();
+ const requestOptions = octokit.request.endpoint.parse(options);
+ const path = requestOptions.url.replace(options.baseUrl, "");
+ return request(options).then(response => {
+ octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`);
+ return response;
+ }).catch(error => {
+ octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - start}ms`);
+ throw error;
+ });
+ });
+}
+requestLog.VERSION = VERSION;
- this[INTERNALS].disturbed = true;
+exports.requestLog = requestLog;
+//# sourceMappingURL=index.js.map
- if (this[INTERNALS].error) {
- return Body.Promise.reject(this[INTERNALS].error);
- }
- let body = this.body;
+/***/ }),
+/* 917 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
- // body is null
- if (body === null) {
- return Body.Promise.resolve(Buffer.alloc(0));
- }
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 918 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 919 */
+/***/ (function(module) {
- // body is blob
- if (isBlob(body)) {
- body = body.stream();
- }
+module.exports = {"_from":"@octokit/rest@^16.43.1","_id":"@octokit/rest@16.43.1","_inBundle":false,"_integrity":"sha512-gfFKwRT/wFxq5qlNjnW2dh+qh74XgTQ2B179UX5K1HYCluioWj8Ndbgqw2PVqa1NnVJkGHp2ovMpVn/DImlmkw==","_location":"/@actions/github/@octokit/rest","_phantomChildren":{},"_requested":{"type":"range","registry":true,"raw":"@octokit/rest@^16.43.1","name":"@octokit/rest","escapedName":"@octokit%2frest","scope":"@octokit","rawSpec":"^16.43.1","saveSpec":null,"fetchSpec":"^16.43.1"},"_requiredBy":["/@actions/github"],"_resolved":"https://registry.npmjs.org/@octokit/rest/-/rest-16.43.1.tgz","_shasum":"3b11e7d1b1ac2bbeeb23b08a17df0b20947eda6b","_spec":"@octokit/rest@^16.43.1","_where":"C:\\Users\\JamesJohn\\opensource\\oppiabot\\node_modules\\@actions\\github","author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"bugs":{"url":"https://github.com/octokit/rest.js/issues"},"bundleDependencies":false,"bundlesize":[{"path":"./dist/octokit-rest.min.js.gz","maxSize":"33 kB"}],"contributors":[{"name":"Mike de Boer","email":"info@mikedeboer.nl"},{"name":"Fabian Jakobs","email":"fabian@c9.io"},{"name":"Joe Gallo","email":"joe@brassafrax.com"},{"name":"Gregor Martynus","url":"https://github.com/gr2m"}],"dependencies":{"@octokit/auth-token":"^2.4.0","@octokit/plugin-paginate-rest":"^1.1.1","@octokit/plugin-request-log":"^1.0.0","@octokit/plugin-rest-endpoint-methods":"2.4.0","@octokit/request":"^5.2.0","@octokit/request-error":"^1.0.2","atob-lite":"^2.0.0","before-after-hook":"^2.0.0","btoa-lite":"^1.0.0","deprecation":"^2.0.0","lodash.get":"^4.4.2","lodash.set":"^4.3.2","lodash.uniq":"^4.5.0","octokit-pagination-methods":"^1.1.0","once":"^1.4.0","universal-user-agent":"^4.0.0"},"deprecated":false,"description":"GitHub REST API client for Node.js","devDependencies":{"@gimenete/type-writer":"^0.1.3","@octokit/auth":"^1.1.1","@octokit/fixtures-server":"^5.0.6","@octokit/graphql":"^4.2.0","@types/node":"^13.1.0","bundlesize":"^0.18.0","chai":"^4.1.2","compression-webpack-plugin":"^3.1.0","cypress":"^3.0.0","glob":"^7.1.2","http-proxy-agent":"^4.0.0","lodash.camelcase":"^4.3.0","lodash.merge":"^4.6.1","lodash.upperfirst":"^4.3.1","lolex":"^5.1.2","mkdirp":"^1.0.0","mocha":"^7.0.1","mustache":"^4.0.0","nock":"^11.3.3","npm-run-all":"^4.1.2","nyc":"^15.0.0","prettier":"^1.14.2","proxy":"^1.0.0","semantic-release":"^17.0.0","sinon":"^8.0.0","sinon-chai":"^3.0.0","sort-keys":"^4.0.0","string-to-arraybuffer":"^1.0.0","string-to-jsdoc-comment":"^1.0.0","typescript":"^3.3.1","webpack":"^4.0.0","webpack-bundle-analyzer":"^3.0.0","webpack-cli":"^3.0.0"},"files":["index.js","index.d.ts","lib","plugins"],"homepage":"https://github.com/octokit/rest.js#readme","keywords":["octokit","github","rest","api-client"],"license":"MIT","name":"@octokit/rest","nyc":{"ignore":["test"]},"publishConfig":{"access":"public"},"release":{"publish":["@semantic-release/npm",{"path":"@semantic-release/github","assets":["dist/*","!dist/*.map.gz"]}]},"repository":{"type":"git","url":"git+https://github.com/octokit/rest.js.git"},"scripts":{"build":"npm-run-all build:*","build:browser":"npm-run-all build:browser:*","build:browser:development":"webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json","build:browser:production":"webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map","build:ts":"npm run -s update-endpoints:typescript","coverage":"nyc report --reporter=html && open coverage/index.html","generate-bundle-report":"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html","lint":"prettier --check '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json","lint:fix":"prettier --write '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json","postvalidate:ts":"tsc --noEmit --target es6 test/typescript-validate.ts","prebuild:browser":"mkdirp dist/","pretest":"npm run -s lint","prevalidate:ts":"npm run -s build:ts","start-fixtures-server":"octokit-fixtures-server","test":"nyc mocha test/mocha-node-setup.js \"test/*/**/*-test.js\"","test:browser":"cypress run --browser chrome","update-endpoints":"npm-run-all update-endpoints:*","update-endpoints:fetch-json":"node scripts/update-endpoints/fetch-json","update-endpoints:typescript":"node scripts/update-endpoints/typescript","validate:ts":"tsc --target es6 --noImplicitAny index.d.ts"},"types":"index.d.ts","version":"16.43.1"};
- // body is buffer
- if (Buffer.isBuffer(body)) {
- return Body.Promise.resolve(body);
- }
+/***/ }),
+/* 920 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
- // istanbul ignore if: should never happen
- if (!(body instanceof Stream)) {
- return Body.Promise.resolve(Buffer.alloc(0));
- }
+"use strict";
- // body is stream
- // get ready to actually consume the body
- let accum = [];
- let accumBytes = 0;
- let abort = false;
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
- return new Body.Promise(function (resolve, reject) {
- let resTimeout;
+/***/ }),
+/* 921 */,
+/* 922 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
- // 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);
- }
+"use strict";
- // 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));
- }
- });
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v4_1 = __webpack_require__(674);
+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
- body.on('data', function (chunk) {
- if (abort || chunk === null) {
- return;
- }
+/***/ }),
+/* 923 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
- 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;
- }
+"use strict";
- accumBytes += chunk.length;
- accum.push(chunk);
- });
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
- body.on('end', function () {
- if (abort) {
- return;
- }
+/***/ }),
+/* 924 */,
+/* 925 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
- clearTimeout(resTimeout);
+"use strict";
- 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));
- }
- });
- });
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1alpha1_1 = __webpack_require__(387);
+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
-/**
- * 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;
+/***/ }),
+/* 926 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
- // header
- if (ct) {
- res = /charset=([^;]*)/i.exec(ct);
- }
+"use strict";
- // no charset in content type, peek at response body for at most 1024 bytes
- str = buffer.slice(0, 1024).toString();
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(21);
+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
- // html5
- if (!res && str) {
- res = /
+ *
+ * Information on the RC2 cipher is available from RFC #2268,
+ * http://www.ietf.org/rfc/rfc2268.txt
*/
-function clone(instance) {
- let p1, p2;
- let body = instance.body;
-
- // don't allow cloning a used body
- if (instance.bodyUsed) {
- throw new Error('cannot clone body after it is used');
- }
-
- // check that body is a stream and not form-data object
- // note: we can't clone the form-data object without having it as a dependency
- if (body instanceof Stream && typeof body.getBoundary !== 'function') {
- // tee instance body
- p1 = new PassThrough();
- p2 = new PassThrough();
- body.pipe(p1);
- body.pipe(p2);
- // set instance body to teed body and return the other teed body
- instance[INTERNALS].body = p1;
- body = p2;
- }
+var forge = __webpack_require__(985);
+__webpack_require__(165);
+
+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
+];
- return body;
-}
+var s = [1, 2, 3, 5];
/**
- * Performs the operation "extract a `Content-Type` value from |object|" as
- * specified in the specification:
- * https://fetch.spec.whatwg.org/#concept-bodyinit-extract
+ * Rotate a word left by given number of bits.
*
- * This function assumes that instance.body is present.
+ * Bits that are shifted out on the left are put back in on the right
+ * hand side.
*
- * @param Mixed instance Any options.body input
+ * @param word The word to shift left.
+ * @param bits The number of bits to shift by.
+ * @return The rotated word.
*/
-function extractContentType(body) {
- if (body === null) {
- // body is null
- return null;
- } else if (typeof body === 'string') {
- // body is string
- return 'text/plain;charset=UTF-8';
- } else if (isURLSearchParams(body)) {
- // body is a URLSearchParams
- return 'application/x-www-form-urlencoded;charset=UTF-8';
- } else if (isBlob(body)) {
- // body is blob
- return body.type || null;
- } else if (Buffer.isBuffer(body)) {
- // body is buffer
- return null;
- } else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') {
- // body is ArrayBuffer
- return null;
- } else if (ArrayBuffer.isView(body)) {
- // body is ArrayBufferView
- return null;
- } else if (typeof body.getBoundary === 'function') {
- // detect form data input from form-data module
- return `multipart/form-data;boundary=${body.getBoundary()}`;
- } else if (body instanceof Stream) {
- // body is stream
- // can't really do much about this
- return null;
- } else {
- // Body constructor defaults other things to string
- return 'text/plain;charset=UTF-8';
- }
-}
+var rol = function(word, bits) {
+ return ((word << bits) & 0xffff) | ((word & 0xffff) >> (16 - bits));
+};
/**
- * The Fetch Standard treats this as if "total bytes" is a property on the body.
- * For us, we have to explicitly get it with a function.
+ * Rotate a word right by given number of bits.
*
- * ref: https://fetch.spec.whatwg.org/#concept-body-total-bytes
+ * Bits that are shifted out on the right are put back in on the left
+ * hand side.
*
- * @param Body instance Instance of Body
- * @return Number? Number of bytes, or null if not possible
+ * @param word The word to shift right.
+ * @param bits The number of bits to shift by.
+ * @return The rotated word.
*/
-function getTotalBytes(instance) {
- const body = instance.body;
-
+var ror = function(word, bits) {
+ return ((word & 0xffff) >> bits) | ((word << (16 - bits)) & 0xffff);
+};
- if (body === null) {
- // body is null
- return 0;
- } else if (isBlob(body)) {
- return body.size;
- } else if (Buffer.isBuffer(body)) {
- // body is buffer
- return body.length;
- } else if (body && typeof body.getLengthSync === 'function') {
- // detect form data input from form-data module
- if (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x
- body.hasKnownLength && body.hasKnownLength()) {
- // 2.x
- return body.getLengthSync();
- }
- return null;
- } else {
- // body is stream
- return null;
- }
-}
+/* RC2 API */
+module.exports = forge.rc2 = forge.rc2 || {};
/**
- * Write a Body to a Node.js WritableStream (e.g. http.Request) object.
+ * Perform RC2 key expansion as per RFC #2268, section 2.
*
- * @param Body instance Instance of Body
- * @return Void
+ * @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)
*/
-function writeToStream(dest, instance) {
- const body = instance.body;
+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]);
- if (body === null) {
- // body is null
- dest.end();
- } else if (isBlob(body)) {
- body.stream().pipe(dest);
- } else if (Buffer.isBuffer(body)) {
- // body is buffer
- dest.write(body);
- dest.end();
- } else {
- // body is stream
- body.pipe(dest);
- }
-}
+ for(i = 127 - T8; i >= 0; i--) {
+ L.setAt(i, piTable[L.at(i + 1) ^ L.at(i + T8)]);
+ }
-// expose Promise
-Body.Promise = global.Promise;
+ return L;
+};
/**
- * headers.js
+ * Creates a RC2 cipher object.
*
- * Headers class offers convenient helpers
+ * @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());
+ }
-const invalidTokenRegex = /[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/;
-const invalidHeaderCharRegex = /[^\t\x20-\x7e\x80-\xff]/;
-
-function validateName(name) {
- name = `${name}`;
- if (invalidTokenRegex.test(name) || name === '') {
- throw new TypeError(`${name} is not a legal HTTP header name`);
- }
-}
+ 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++;
+ }
+ };
-function validateValue(value) {
- value = `${value}`;
- if (invalidHeaderCharRegex.test(value)) {
- throw new TypeError(`${value} is not a legal HTTP header value`);
- }
-}
+ /**
+ * 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--;
+ }
+ };
-/**
- * Find the key in the map object given a header name.
- *
- * Returns undefined if not found.
- *
- * @param String name Header name
- * @return String|Undefined
- */
-function find(map, name) {
- name = name.toLowerCase();
- for (const key in map) {
- if (key.toLowerCase() === name) {
- return key;
- }
- }
- return undefined;
-}
+ /**
+ * 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];
+ }
+ };
+ }
-const MAP = Symbol('map');
-class Headers {
- /**
- * Headers class
- *
- * @param Object headers Response headers
- * @return Void
- */
- constructor() {
- let init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
+ /**
+ * 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);
+ }
+ }
- this[MAP] = Object.create(null);
+ R.push(val & 0xffff);
+ }
- if (init instanceof Headers) {
- const rawHeaders = init.raw();
- const headerNames = Object.keys(rawHeaders);
+ /* Reset global "j" variable as per spec. */
+ j = encrypt ? 0 : 63;
- for (const headerName of headerNames) {
- for (const value of rawHeaders[headerName]) {
- this.append(headerName, value);
- }
- }
+ /* Run execution plan. */
+ for(var ptr = 0; ptr < plan.length; ptr++) {
+ for(var ctr = 0; ctr < plan[ptr][0]; ctr++) {
+ plan[ptr][1](R);
+ }
+ }
- return;
- }
+ /* 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();
+ }
+ }
- // 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');
- }
+ _output.putInt16Le(R[i]);
+ }
+ };
- // 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));
- }
+ /* 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);
+ }
+ }
- 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');
- }
- }
+ _finish = false;
+ _input = forge.util.createBuffer();
+ _output = output || new forge.util.createBuffer();
+ _iv = iv;
- /**
- * 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;
- }
+ cipher.output = _output;
+ },
- return this[MAP][key].join(', ');
- }
+ /**
+ * 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);
+ }
- /**
- * 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;
+ while(_input.length() >= 8) {
+ runPlan([
+ [ 5, mixRound ],
+ [ 1, mashRound ],
+ [ 6, mixRound ],
+ [ 1, mashRound ],
+ [ 5, mixRound ]
+ ]);
+ }
+ },
- 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];
+ /**
+ * 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;
- callback.call(thisArg, value, name, this);
- pairs = getHeaders(this);
- i++;
- }
- }
+ 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);
+ }
+ }
- /**
- * 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];
- }
+ if(rval) {
+ // do final update
+ _finish = true;
+ cipher.update();
+ }
- /**
- * 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];
- }
- }
+ 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);
+ }
+ }
+ }
+ }
- /**
- * Check for header name existence
- *
- * @param String name Header name
- * @return Boolean
- */
- has(name) {
- name = `${name}`;
- validateName(name);
- return find(this[MAP], name) !== undefined;
- }
+ return rval;
+ }
+ };
- /**
- * 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 cipher;
+};
- /**
- * Return raw headers (non-spec api)
- *
- * @return Object
- */
- raw() {
- return this[MAP];
- }
+/**
+ * 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;
+};
- /**
- * Get an iterator on keys.
- *
- * @return Iterator
- */
- keys() {
- return createHeadersIterator(this, 'key');
- }
+/**
+ * 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);
+};
- /**
- * Get an iterator on values.
- *
- * @return Iterator
- */
- values() {
- return createHeadersIterator(this, 'value');
- }
+/**
+ * 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;
+};
- /**
- * 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];
+/**
+ * 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);
+};
-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 }
-});
+/***/ }),
+/* 931 */,
+/* 932 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
-function getHeaders(headers) {
- let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value';
+"use strict";
- 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(', ')];
- });
-}
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
-const INTERNAL = Symbol('internal');
+/***/ }),
+/* 933 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
-function createHeadersIterator(target, kind) {
- const iterator = Object.create(HeadersIteratorPrototype);
- iterator[INTERNAL] = {
- target,
- kind,
- index: 0
- };
- return iterator;
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1beta1_1 = __webpack_require__(359);
+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
-const HeadersIteratorPrototype = Object.setPrototypeOf({
- next() {
- // istanbul ignore if
- if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) {
- throw new TypeError('Value of `this` is not a HeadersIterator');
- }
+/***/ }),
+/* 934 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
- var _INTERNAL = this[INTERNAL];
- const target = _INTERNAL.target,
- kind = _INTERNAL.kind,
- index = _INTERNAL.index;
+"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 = __webpack_require__(191);
+const stream = __webpack_require__(413);
+const formatEcdsa = __webpack_require__(815);
+const crypto_1 = __webpack_require__(207);
+const authclient_1 = __webpack_require__(628);
+const loginticket_1 = __webpack_require__(268);
+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
- const values = getHeaders(target, kind);
- const len = values.length;
- if (index >= len) {
- return {
- value: undefined,
- done: true
- };
- }
+/***/ }),
+/* 935 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
- this[INTERNAL].index = index + 1;
+"use strict";
- return {
- value: values[index],
- done: false
- };
- }
-}, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(579);
+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
-Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, {
- value: 'HeadersIterator',
- writable: false,
- enumerable: false,
- configurable: true
-});
+/***/ }),
+/* 936 */,
+/* 937 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
/**
- * Export the Headers object in a form that Node.js can consume.
+ * Javascript implementation of Abstract Syntax Notation Number One.
*
- * @param Headers headers
- * @return Object
+ * @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
*/
-function exportNodeCompatibleHeaders(headers) {
- const obj = Object.assign({ __proto__: null }, headers[MAP]);
+var forge = __webpack_require__(985);
+__webpack_require__(165);
+__webpack_require__(650);
- // 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];
- }
+/* ASN.1 API */
+var asn1 = module.exports = forge.asn1 = forge.asn1 || {};
- return obj;
-}
+/**
+ * ASN.1 classes.
+ */
+asn1.Class = {
+ UNIVERSAL: 0x00,
+ APPLICATION: 0x40,
+ CONTEXT_SPECIFIC: 0x80,
+ PRIVATE: 0xC0
+};
/**
- * 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
+ * ASN.1 types. Not all types are supported by this implementation, only
+ * those necessary to implement a simple PKI are implemented.
*/
-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;
-}
+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
+};
-const INTERNALS$1 = Symbol('Response internals');
+/**
+ * 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;
+ }
-// fix an issue where "STATUS_CODES" aren't a named export for node <10
-const STATUS_CODES = http.STATUS_CODES;
+ 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;
+};
/**
- * Response class
+ * Copies an asn1 object.
*
- * @param Stream body Readable stream
- * @param Object opts Response options
- * @return Void
+ * @param obj the asn1 object.
+ * @param [options] copy options:
+ * [excludeBitStringContents] true to not copy bitStringContents
+ *
+ * @return the a copy of the asn1 object.
*/
-class Response {
- constructor() {
- let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
- let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
+asn1.copy = function(obj, options) {
+ var copy;
- Body.call(this, body, opts);
+ if(forge.util.isArray(obj)) {
+ copy = [];
+ for(var i = 0; i < obj.length; ++i) {
+ copy.push(asn1.copy(obj[i], options));
+ }
+ return copy;
+ }
- const status = opts.status || 200;
- const headers = new Headers(opts.headers);
+ if(typeof obj === 'string') {
+ // TODO: copy byte buffer if it's a buffer not a string
+ return obj;
+ }
- if (body != null && !headers.has('Content-Type')) {
- const contentType = extractContentType(body);
- if (contentType) {
- headers.append('Content-Type', contentType);
- }
- }
+ 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;
+};
- this[INTERNALS$1] = {
- url: opts.url,
- status,
- statusText: opts.statusText || STATUS_CODES[status],
- headers,
- counter: opts.counter
- };
- }
+/**
+ * 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;
+ }
- get url() {
- return this[INTERNALS$1].url || '';
- }
+ if(typeof obj1 !== typeof obj2) {
+ return false;
+ }
- get status() {
- return this[INTERNALS$1].status;
- }
+ if(typeof obj1 === 'string') {
+ return obj1 === obj2;
+ }
- /**
- * Convenience property representing if the request ended normally
- */
- get ok() {
- return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300;
- }
+ 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);
+ }
- get redirected() {
- return this[INTERNALS$1].counter > 0;
- }
+ return equal;
+};
- get statusText() {
- return this[INTERNALS$1].statusText;
- }
+/**
+ * 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;
+ }
- get headers() {
- return this[INTERNALS$1].headers;
- }
+ // 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;
+};
- /**
- * 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
- });
- }
+/**
+ * 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;
+ }
}
-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.
+ * Gets the length of a BER-encoded ASN.1 value.
*
- * @param Mixed input
- * @return Boolean
+ * 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.
*/
-function isRequest(input) {
- return typeof input === 'object' && typeof input[INTERNALS$2] === 'object';
-}
+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;
+ }
-function isAbortSignal(signal) {
- const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal);
- return !!(proto && proto.constructor.name === 'AbortSignal');
-}
+ // 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;
+};
/**
- * Request class
+ * Parses an asn1 object from a byte buffer in DER format.
*
- * @param Mixed input Url or Request instance
- * @param Object init Custom options
- * @return Void
+ * @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.
*/
-class Request {
- constructor(input) {
- let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
+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;
+ }
- let parsedURL;
+ // wrap in buffer if needed
+ if(typeof bytes === 'string') {
+ bytes = forge.util.createBuffer(bytes);
+ }
- // 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);
- }
+ return _fromDer(bytes, bytes.length(), 0, options);
+};
- let method = init.method || input.method || 'GET';
- method = method.toUpperCase();
+/**
+ * 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;
+ }
- if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) {
- throw new TypeError('Request with GET/HEAD method cannot have body');
- }
+ // 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();
+ }
+ }
+ }
- let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null;
+ // if a BIT STRING, save the contents including padding
+ if(value === undefined && tagClass === asn1.Class.UNIVERSAL &&
+ type === asn1.Type.BITSTRING) {
+ bitStringContents = bytes.bytes(length);
+ }
- Body.call(this, inputBody, {
- timeout: init.timeout || input.timeout || 0,
- size: init.size || input.size || 0
- });
+ // 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++;
+ }
- const headers = new Headers(init.headers || input.headers || {});
+ // 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 (inputBody != null && !headers.has('Content-Type')) {
- const contentType = extractContentType(inputBody);
- if (contentType) {
- headers.append('Content-Type', contentType);
- }
- }
+ if(value === undefined) {
+ // asn1 not constructed or composed, get raw value
+ // TODO: do DER to OID conversion and vice-versa in .toDer?
- let signal = isRequest(input) ? input.signal : null;
- if ('signal' in init) signal = init.signal;
+ 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 (signal != null && !isAbortSignal(signal)) {
- throw new TypeError('Expected signal to be an instanceof AbortSignal');
- }
+ 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);
+ }
+ }
- this[INTERNALS$2] = {
- method,
- redirect: init.redirect || input.redirect || 'follow',
- headers,
- parsedURL,
- signal
- };
+ // add BIT STRING contents if available
+ var asn1Options = bitStringContents === undefined ? null : {
+ bitStringContents: bitStringContents
+ };
- // 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;
- }
+ // create and return asn1 object
+ return asn1.create(tagClass, type, constructed, value, asn1Options);
+}
- get method() {
- return this[INTERNALS$2].method;
- }
+/**
+ * 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();
- get url() {
- return format_url(this[INTERNALS$2].parsedURL);
- }
+ // build the first byte
+ var b1 = obj.tagClass | obj.type;
- get headers() {
- return this[INTERNALS$2].headers;
- }
+ // for storing the ASN.1 value
+ var value = forge.util.createBuffer();
- get redirect() {
- return this[INTERNALS$2].redirect;
- }
+ // 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);
+ }
+ }
- get signal() {
- return this[INTERNALS$2].signal;
- }
+ 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);
+ }
- /**
- * Clone this request
- *
- * @return Request
- */
- clone() {
- return new Request(this);
- }
-}
+ // 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);
+ }
+ }
+ }
-Body.mixIn(Request.prototype);
+ // add tag byte
+ bytes.putByte(b1);
-Object.defineProperty(Request.prototype, Symbol.toStringTag, {
- value: 'Request',
- writable: false,
- enumerable: false,
- configurable: true
-});
+ // 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));
+ }
+ }
-Object.defineProperties(Request.prototype, {
- method: { enumerable: true },
- url: { enumerable: true },
- headers: { enumerable: true },
- redirect: { enumerable: true },
- clone: { enumerable: true },
- signal: { enumerable: true }
-});
+ // concatenate value bytes
+ bytes.putBuffer(value);
+ return bytes;
+};
/**
- * Convert a Request to Node.js http request options.
+ * 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 Request A Request instance
- * @return Object The options object to be passed to http.request
+ * @param oid the OID dot-separated string.
+ *
+ * @return the byte buffer.
*/
-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);
- }
+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);
- // 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)');
- }
+ // add value bytes in reverse (needs to be in big endian)
+ for(var n = valueBytes.length - 1; n >= 0; --n) {
+ bytes.putByte(valueBytes[n]);
+ }
+ }
- // HTTP-network-or-cache fetch step 2.15
- if (request.compress && !headers.has('Accept-Encoding')) {
- headers.set('Accept-Encoding', 'gzip,deflate');
- }
+ return bytes;
+};
- let agent = request.agent;
- if (typeof agent === 'function') {
- agent = agent(parsedURL);
- }
+/**
+ * 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;
- if (!headers.has('Connection') && !agent) {
- headers.set('Connection', 'close');
- }
+ // wrap in buffer if needed
+ if(typeof bytes === 'string') {
+ bytes = forge.util.createBuffer(bytes);
+ }
- // HTTP-network fetch step 4.2
- // chunked encoding is handled by Node.js
+ // 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 Object.assign({}, parsedURL, {
- method: request.method,
- headers: exportNodeCompatibleHeaders(headers),
- agent
- });
-}
+ return oid;
+};
/**
- * abort-error.js
+ * Converts a UTCTime value to a date.
*
- * AbortError interface for cancelled requests
- */
-
-/**
- * Create AbortError instance
+ * 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 String message Error message for human
- * @return AbortError
+ * @param utc the UTCTime value to convert.
+ *
+ * @return the date.
*/
-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);
-}
+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;
+ }
+ }
-AbortError.prototype = Object.create(Error.prototype);
-AbortError.prototype.constructor = AbortError;
-AbortError.prototype.name = 'AbortError';
+ // 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);
+ }
+ }
+ }
-// fix an issue where "PassThrough", "resolve" aren't a named export for node <10
-const PassThrough$1 = Stream.PassThrough;
-const resolve_url = Url.resolve;
+ return date;
+};
/**
- * Fetch function
+ * Converts a GeneralizedTime value to a date.
*
- * @param Mixed url Absolute url or Request instance
- * @param Object opts Fetch options
- * @return Promise
+ * @param gentime the GeneralizedTime value to convert.
+ *
+ * @return the date.
*/
-function fetch(url, opts) {
+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;
+ }
- // allow custom promise
- if (!fetch.Promise) {
- throw new Error('native promise missing, set fetch.Promise to your favorite alternative');
- }
+ 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);
- Body.Promise = fetch.Promise;
+ // calculate offset in milliseconds
+ offset = hhoffset * 60 + mmoffset;
+ offset *= 60000;
- // 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);
+ // apply offset
+ if(c === '+') {
+ offset *= -1;
+ }
- const send = (options.protocol === 'https:' ? https : http).request;
- const signal = request.signal;
+ isUTC = true;
+ }
- let response = null;
+ // check for second fraction
+ if(gentime.charAt(14) === '.') {
+ fff = parseFloat(gentime.substr(14), 10) * 1000;
+ }
- 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(isUTC) {
+ date.setUTCFullYear(YYYY, MM, DD);
+ date.setUTCHours(hh, mm, ss, fff);
- if (signal && signal.aborted) {
- abort();
- return;
- }
+ // apply offset
+ date.setTime(+date + offset);
+ } else {
+ date.setFullYear(YYYY, MM, DD);
+ date.setHours(hh, mm, ss, fff);
+ }
- const abortAndFinalize = function abortAndFinalize() {
- abort();
- finalize();
- };
+ return date;
+};
- // send request
- const req = send(options);
- let reqTimeout;
+/**
+ * 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;
+ }
- if (signal) {
- signal.addEventListener('abort', abortAndFinalize);
- }
+ 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';
- function finalize() {
- req.abort();
- if (signal) signal.removeEventListener('abort', abortAndFinalize);
- clearTimeout(reqTimeout);
- }
+ return rval;
+};
- if (request.timeout) {
- req.once('socket', function (socket) {
- reqTimeout = setTimeout(function () {
- reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout'));
- finalize();
- }, request.timeout);
- });
- }
+/**
+ * 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;
+ }
- req.on('error', function (err) {
- reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err));
- finalize();
- });
+ 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';
- req.on('response', function (res) {
- clearTimeout(reqTimeout);
+ return rval;
+};
- const headers = createHeadersLenient(res.headers);
+/**
+ * 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;
+};
- // HTTP fetch step 5
- if (fetch.isRedirect(res.statusCode)) {
- // HTTP fetch step 5.2
- const location = headers.get('Location');
+/**
+ * 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);
+ }
- // HTTP fetch step 5.3
- const locationURL = location === null ? null : resolve_url(request.url, location);
+ var n = bytes.length() * 8;
+ if(n > 32) {
+ throw new Error('Integer too large; max is 32-bits.');
+ }
+ return bytes.getSignedInt(n);
+};
- // 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;
- }
+/**
+ * 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 + '"');
+ }
+ }
+ }
- // HTTP-redirect fetch step 5
- if (request.counter >= request.follow) {
- reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect'));
- finalize();
- return;
- }
+ 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;
+};
- // 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
- };
+// regex for testing for non-latin characters
+var _nonLatinRegex = /[^\\u0000-\\u00ff]/;
- // 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;
- }
+/**
+ * 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 = '';
- // 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');
- }
+ // set default level and indentation
+ level = level || 0;
+ indentation = indentation || 2;
- // HTTP-redirect fetch step 15
- resolve(fetch(new Request(locationURL, requestOpts)));
- finalize();
- return;
- }
- }
+ // start new line for deep levels
+ if(level > 0) {
+ rval += '\n';
+ }
- // prepare response
- res.once('end', function () {
- if (signal) signal.removeEventListener('abort', abortAndFinalize);
- });
- let body = res.pipe(new PassThrough$1());
+ // create indent
+ var indent = '';
+ for(var i = 0; i < level * indentation; ++i) {
+ indent += ' ';
+ }
- const response_options = {
- url: request.url,
- status: res.statusCode,
- statusText: res.statusMessage,
- headers: headers,
- size: request.size,
- timeout: request.timeout,
- counter: request.counter
- };
+ // 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;
+ }
- // HTTP-network fetch step 12.1.1.3
- const codings = headers.get('Content-Encoding');
+ if(obj.tagClass === asn1.Class.UNIVERSAL) {
+ rval += obj.type;
- // HTTP-network fetch step 12.1.1.4: handle content codings
+ // 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;
+ }
- // 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;
- }
+ 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;
+ }
+ }
- // 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
- };
+ return rval;
+};
- // 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;
- }
+/***/ }),
+/* 938 */,
+/* 939 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
- // for br
- if (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') {
- body = body.pipe(zlib.createBrotliDecompress());
- response = new Response(body, response_options);
- resolve(response);
- return;
- }
+"use strict";
- // otherwise, use response as-is
- response = new Response(body, response_options);
- resolve(response);
- });
+// 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 = __webpack_require__(417);
+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
+
+/***/ }),
+/* 940 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
- 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;
-};
+/***/ }),
+/* 941 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
-// expose Promise
-fetch.Promise = global.Promise;
+"use strict";
-module.exports = exports = fetch;
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
Object.defineProperty(exports, "__esModule", { value: true });
-exports.default = exports;
-exports.Headers = Headers;
-exports.Request = Request;
-exports.Response = Response;
-exports.FetchError = FetchError;
-
+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 = __webpack_require__(927);
+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
/***/ }),
-
-/***/ 462:
-/***/ (function(module) {
+/* 942 */,
+/* 943 */,
+/* 944 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
-
-// See http://www.robvanderwoude.com/escapechars.php
-const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
-
-function escapeCommand(arg) {
- // Escape meta chars
- arg = arg.replace(metaCharsRegExp, '^$1');
-
- return arg;
-}
-
-function escapeArgument(arg, doubleEscapeMetaChars) {
- // Convert to string
- arg = `${arg}`;
-
- // Algorithm below is based on https://qntm.org/cmd
-
- // Sequence of backslashes followed by a double quote:
- // double up all the backslashes and escape the double quote
- arg = arg.replace(/(\\*)"/g, '$1$1\\"');
-
- // Sequence of backslashes followed by the end of the string
- // (which will become a double quote later):
- // double up all the backslashes
- arg = arg.replace(/(\\*)$/, '$1$1');
-
- // All other backslashes occur literally
-
- // Quote the whole thing:
- arg = `"${arg}"`;
-
- // Escape meta chars
- arg = arg.replace(metaCharsRegExp, '^$1');
-
- // Double escape meta chars if necessary
- if (doubleEscapeMetaChars) {
- arg = arg.replace(metaCharsRegExp, '^$1');
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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);
+ }
+ }
}
-
- return arg;
-}
-
-module.exports.command = escapeCommand;
-module.exports.argument = escapeArgument;
-
+ servicecontrol_v1.Resource$Services = Resource$Services;
+})(servicecontrol_v1 = exports.servicecontrol_v1 || (exports.servicecontrol_v1 = {}));
+//# sourceMappingURL=v1.js.map
/***/ }),
-
-/***/ 463:
+/* 945 */
/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
-Object.defineProperty(exports, '__esModule', { value: true });
+/***/ }),
+/* 946 */,
+/* 947 */,
+/* 948 */
+/***/ (function(module) {
-function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
+"use strict";
-var deprecation = __webpack_require__(692);
-var once = _interopDefault(__webpack_require__(969));
-const logOnce = once(deprecation => console.warn(deprecation));
/**
- * Error with extra properties to help with debugging
+ * Tries to execute a function and discards any error that occurs.
+ * @param {Function} fn - Function that might or might not throw an error.
+ * @returns {?*} Return-value of the function when no error occurred.
*/
+module.exports = function(fn) {
-class RequestError extends Error {
- constructor(message, statusCode, options) {
- super(message); // Maintains proper stack trace (only available on V8)
-
- /* istanbul ignore next */
-
- if (Error.captureStackTrace) {
- Error.captureStackTrace(this, this.constructor);
- }
+ try { return fn() } catch (e) {}
- this.name = "HttpError";
- this.status = statusCode;
- Object.defineProperty(this, "code", {
- get() {
- logOnce(new deprecation.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));
- return statusCode;
- }
+}
- });
- this.headers = options.headers || {}; // redact request credentials without mutating original request options
+/***/ }),
+/* 949 */,
+/* 950 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
- const requestCopy = Object.assign({}, options.request);
+"use strict";
- if (options.request.headers.authorization) {
- requestCopy.headers = Object.assign({}, options.request.headers, {
- authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]")
- });
+Object.defineProperty(exports, "__esModule", { value: true });
+const url = __webpack_require__(835);
+function getProxyUrl(reqUrl) {
+ let usingSsl = reqUrl.protocol === 'https:';
+ let proxyUrl;
+ if (checkBypass(reqUrl)) {
+ return proxyUrl;
}
-
- requestCopy.url = requestCopy.url // client_id & client_secret can be passed as URL query parameters to increase rate limit
- // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications
- .replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]") // OAuth tokens can be passed as URL query parameters, although it is not recommended
- // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header
- .replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
- this.request = requestCopy;
- }
-
+ let proxyVar;
+ if (usingSsl) {
+ proxyVar = process.env['https_proxy'] || process.env['HTTPS_PROXY'];
+ }
+ else {
+ proxyVar = process.env['http_proxy'] || process.env['HTTP_PROXY'];
+ }
+ if (proxyVar) {
+ proxyUrl = url.parse(proxyVar);
+ }
+ return proxyUrl;
}
-
-exports.RequestError = RequestError;
-//# sourceMappingURL=index.js.map
+exports.getProxyUrl = getProxyUrl;
+function checkBypass(reqUrl) {
+ if (!reqUrl.hostname) {
+ return false;
+ }
+ let 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
+ let upperReqHosts = [reqUrl.hostname.toUpperCase()];
+ if (typeof reqPort === 'number') {
+ upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);
+ }
+ // Compare request host against noproxy
+ for (let 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;
/***/ }),
-
-/***/ 469:
+/* 951 */
/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
-var __importStar = (this && this.__importStar) || function (mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
- return result;
-};
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
Object.defineProperty(exports, "__esModule", { value: true });
-// Originally pulled from https://github.com/JasonEtco/actions-toolkit/blob/master/src/github.ts
-const graphql_1 = __webpack_require__(898);
-const rest_1 = __webpack_require__(741);
-const Context = __importStar(__webpack_require__(262));
-const httpClient = __importStar(__webpack_require__(539));
-// We need this in order to extend Octokit
-rest_1.Octokit.prototype = new rest_1.Octokit();
-exports.context = new Context.Context();
-class GitHub extends rest_1.Octokit {
- constructor(token, opts) {
- super(GitHub.getOctokitOptions(GitHub.disambiguate(token, opts)));
- this.graphql = GitHub.getGraphQL(GitHub.disambiguate(token, opts));
- }
+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 = __webpack_require__(927);
+var compute_alpha;
+(function (compute_alpha) {
/**
- * Disambiguates the constructor overload parameters
+ * 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
*/
- static disambiguate(token, opts) {
- return [
- typeof token === 'string' ? token : '',
- typeof token === 'object' ? token : opts || {}
- ];
+ 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);
+ }
}
- static getOctokitOptions(args) {
- const token = args[0];
- const options = Object.assign({}, args[1]); // Shallow clone - don't mutate the object provided by the caller
- // Base URL - GHES or Dotcom
- options.baseUrl = options.baseUrl || this.getApiBaseUrl();
- // Auth
- const auth = GitHub.getAuthString(token, options);
- if (auth) {
- options.auth = auth;
+ 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);
+ }
}
- // Proxy
- const agent = GitHub.getProxyAgent(options.baseUrl, options);
- if (agent) {
- // Shallow clone - don't mutate the object provided by the caller
- options.request = options.request ? Object.assign({}, options.request) : {};
- // Set the agent
- options.request.agent = agent;
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- return options;
- }
- static getGraphQL(args) {
- const defaults = {};
- defaults.baseUrl = this.getGraphQLBaseUrl();
- const token = args[0];
- const options = args[1];
- // Authorization
- const auth = this.getAuthString(token, options);
- if (auth) {
- defaults.headers = {
- authorization: auth
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- // Proxy
- const agent = GitHub.getProxyAgent(defaults.baseUrl, options);
- if (agent) {
- defaults.request = { agent };
+ 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);
+ }
}
- return graphql_1.graphql.defaults(defaults);
- }
- static getAuthString(token, options) {
- // Validate args
- if (!token && !options.auth) {
- throw new Error('Parameter token or opts.auth is required');
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- else if (token && options.auth) {
- throw new Error('Parameters token and opts.auth may not both be specified');
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- return typeof options.auth === 'string' ? options.auth : `token ${token}`;
}
- static getProxyAgent(destinationUrl, options) {
- var _a;
- if (!((_a = options.request) === null || _a === void 0 ? void 0 : _a.agent)) {
- if (httpClient.getProxyUrl(destinationUrl)) {
- const hc = new httpClient.HttpClient();
- return hc.getAgent(destinationUrl);
+ 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);
}
}
- return undefined;
}
- static getApiBaseUrl() {
- return process.env['GITHUB_API_URL'] || 'https://api.github.com';
+ 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);
+ }
+ }
}
- static getGraphQLBaseUrl() {
- let url = process.env['GITHUB_GRAPHQL_URL'] || 'https://api.github.com/graphql';
- // Shouldn't be a trailing slash, but remove if so
- if (url.endsWith('/')) {
- url = url.substr(0, url.length - 1);
+ compute_alpha.Resource$Externalvpngateways = Resource$Externalvpngateways;
+ class Resource$Firewalls {
+ constructor(context) {
+ this.context = context;
}
- // Remove trailing "/graphql"
- if (url.toUpperCase().endsWith('/GRAPHQL')) {
- url = url.substr(0, url.length - '/graphql'.length);
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- return url;
}
-}
-exports.GitHub = GitHub;
-//# sourceMappingURL=github.js.map
-
-/***/ }),
-
-/***/ 470:
-/***/ (function(__unusedmodule, exports, __webpack_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 __importStar = (this && this.__importStar) || function (mod) {
- if (mod && mod.__esModule) return mod;
- var result = {};
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
- result["default"] = mod;
- return result;
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-const command_1 = __webpack_require__(431);
-const os = __importStar(__webpack_require__(87));
-const path = __importStar(__webpack_require__(622));
-/**
- * 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 = command_1.toCommandValue(val);
- process.env[name] = convertedVal;
- 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) {
- command_1.issueCommand('add-path', {}, inputPath);
- process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`;
-}
-exports.addPath = addPath;
-/**
- * Gets the value of an input. The value is also trimmed.
- *
- * @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}`);
+ 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);
+ }
+ }
}
- return val.trim();
-}
-exports.getInput = getInput;
-/**
- * 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) {
- 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()
- */
-function error(message) {
- command_1.issue('error', message instanceof Error ? message.toString() : message);
-}
-exports.error = error;
-/**
- * Adds an warning issue
- * @param message warning issue message. Errors will be converted to string via toString()
- */
-function warning(message) {
- command_1.issue('warning', message instanceof Error ? message.toString() : message);
-}
-exports.warning = warning;
-/**
- * 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();
+ 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);
+ }
}
- finally {
- endGroup();
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- 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;
-//# sourceMappingURL=core.js.map
-
-/***/ }),
-
-/***/ 489:
-/***/ (function(module, __unusedexports, __webpack_require__) {
-
-"use strict";
-
-
-const path = __webpack_require__(622);
-const which = __webpack_require__(814);
-const pathKey = __webpack_require__(39)();
-
-function resolveCommandAttempt(parsed, withoutPathExt) {
- const cwd = process.cwd();
- const hasCustomCwd = parsed.options.cwd != null;
-
- // If a custom `cwd` was specified, we need to change the process cwd
- // because `which` will do stat calls but does not support a custom cwd
- if (hasCustomCwd) {
- try {
- process.chdir(parsed.options.cwd);
- } catch (err) {
- /* Empty */
+ 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);
+ }
}
}
-
- let resolved;
-
- try {
- resolved = which.sync(parsed.command, {
- path: (parsed.options.env || process.env)[pathKey],
- pathExt: withoutPathExt ? path.delimiter : undefined,
- });
- } catch (e) {
- /* Empty */
- } finally {
- process.chdir(cwd);
- }
-
- // If we successfully resolved, ensure that an absolute path is returned
- // Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it
- if (resolved) {
- resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);
- }
-
- return resolved;
-}
-
-function resolveCommand(parsed) {
- return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
-}
-
-module.exports = resolveCommand;
-
-
-/***/ }),
-
-/***/ 513:
-/***/ (function(module, __unusedexports, __webpack_require__) {
-
-module.exports = factory;
-
-const Octokit = __webpack_require__(135);
-const registerPlugin = __webpack_require__(861);
-
-function factory(plugins) {
- const Api = Octokit.bind(null, plugins || []);
- Api.plugin = registerPlugin.bind(null, plugins || []);
- return Api;
-}
-
-
-/***/ }),
-
-/***/ 524:
-/***/ (function(__unusedmodule, exports, __webpack_require__) {
-
-"use strict";
-
-
-Object.defineProperty(exports, '__esModule', { value: true });
-
-function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
-
-var deprecation = __webpack_require__(692);
-var once = _interopDefault(__webpack_require__(969));
-
-const logOnce = once(deprecation => console.warn(deprecation));
-/**
- * Error with extra properties to help with debugging
- */
-
-class RequestError extends Error {
- constructor(message, statusCode, options) {
- super(message); // Maintains proper stack trace (only available on V8)
-
- /* istanbul ignore next */
-
- if (Error.captureStackTrace) {
- Error.captureStackTrace(this, this.constructor);
+ 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);
+ }
+ }
}
-
- this.name = "HttpError";
- this.status = statusCode;
- Object.defineProperty(this, "code", {
- get() {
- logOnce(new deprecation.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));
- return statusCode;
- }
-
- });
- this.headers = options.headers || {}; // redact request credentials without mutating original request options
-
- const requestCopy = Object.assign({}, options.request);
-
- if (options.request.headers.authorization) {
- requestCopy.headers = Object.assign({}, options.request.headers, {
- authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]")
- });
+ 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);
+ }
+ }
}
-
- requestCopy.url = requestCopy.url // client_id & client_secret can be passed as URL query parameters to increase rate limit
- // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications
- .replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]") // OAuth tokens can be passed as URL query parameters, although it is not recommended
- // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header
- .replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
- this.request = requestCopy;
- }
-
-}
-
-exports.RequestError = RequestError;
-//# sourceMappingURL=index.js.map
-
-
-/***/ }),
-
-/***/ 536:
-/***/ (function(module, __unusedexports, __webpack_require__) {
-
-module.exports = hasFirstPage
-
-const deprecate = __webpack_require__(370)
-const getPageLinks = __webpack_require__(577)
-
-function hasFirstPage (link) {
- deprecate(`octokit.hasFirstPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
- return getPageLinks(link).first
-}
-
-
-/***/ }),
-
-/***/ 538:
-/***/ (function(module) {
-
-module.exports = validateAuth;
-
-function validateAuth(auth) {
- if (typeof auth === "string") {
- return;
- }
-
- if (typeof auth === "function") {
- return;
- }
-
- if (auth.username && auth.password) {
- return;
- }
-
- if (auth.clientId && auth.clientSecret) {
- return;
- }
-
- throw new Error(`Invalid "auth" option: ${JSON.stringify(auth)}`);
-}
-
-
-/***/ }),
-
-/***/ 539:
-/***/ (function(__unusedmodule, exports, __webpack_require__) {
-
-"use strict";
-
-Object.defineProperty(exports, "__esModule", { value: true });
-const url = __webpack_require__(835);
-const http = __webpack_require__(605);
-const https = __webpack_require__(34);
-const pm = __webpack_require__(950);
-let tunnel;
-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) {
- let proxyUrl = pm.getProxyUrl(url.parse(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 HttpClientResponse {
- constructor(message) {
- this.message = message;
+ 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);
+ }
+ }
}
- readBody() {
- return new Promise(async (resolve, reject) => {
- let output = Buffer.alloc(0);
- this.message.on('data', (chunk) => {
- output = Buffer.concat([output, chunk]);
- });
- this.message.on('end', () => {
- resolve(output.toString());
- });
- });
+ 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);
+ }
+ }
}
-}
-exports.HttpClientResponse = HttpClientResponse;
-function isHttps(requestUrl) {
- let parsedUrl = url.parse(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;
+ 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 = {};
}
- this._socketTimeout = requestOptions.socketTimeout;
- if (requestOptions.allowRedirects != null) {
- this._allowRedirects = requestOptions.allowRedirects;
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
}
- if (requestOptions.allowRedirectDowngrade != null) {
- this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;
+ 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);
}
- if (requestOptions.maxRedirects != null) {
- this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);
+ else {
+ return googleapis_common_1.createAPIRequest(parameters);
}
- if (requestOptions.keepAlive != null) {
- this._keepAlive = requestOptions.keepAlive;
+ }
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
}
- if (requestOptions.allowRetries != null) {
- this._allowRetries = requestOptions.allowRetries;
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
}
- if (requestOptions.maxRetries != null) {
- this._maxRetries = requestOptions.maxRetries;
+ 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);
}
}
}
- options(requestUrl, additionalHeaders) {
- return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});
- }
- get(requestUrl, additionalHeaders) {
- return this.request('GET', requestUrl, null, additionalHeaders || {});
- }
- del(requestUrl, additionalHeaders) {
- return this.request('DELETE', requestUrl, null, additionalHeaders || {});
- }
- post(requestUrl, data, additionalHeaders) {
- return this.request('POST', requestUrl, data, additionalHeaders || {});
- }
- patch(requestUrl, data, additionalHeaders) {
- return this.request('PATCH', requestUrl, data, additionalHeaders || {});
- }
- put(requestUrl, data, additionalHeaders) {
- return this.request('PUT', requestUrl, data, additionalHeaders || {});
- }
- head(requestUrl, additionalHeaders) {
- return this.request('HEAD', requestUrl, null, additionalHeaders || {});
- }
- sendStream(verb, requestUrl, stream, additionalHeaders) {
- 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
- */
- async getJson(requestUrl, additionalHeaders = {}) {
- additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
- let res = await this.get(requestUrl, additionalHeaders);
- return this._processResponse(res, this.requestOptions);
- }
- async postJson(requestUrl, obj, additionalHeaders = {}) {
- let 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);
- let res = await this.post(requestUrl, data, additionalHeaders);
- return this._processResponse(res, this.requestOptions);
- }
- async putJson(requestUrl, obj, additionalHeaders = {}) {
- let 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);
- let res = await this.put(requestUrl, data, additionalHeaders);
- return this._processResponse(res, this.requestOptions);
- }
- async patchJson(requestUrl, obj, additionalHeaders = {}) {
- let 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);
- let res = await 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
- */
- async request(verb, requestUrl, data, headers) {
- if (this._disposed) {
- throw new Error('Client has already been disposed.');
+ compute_alpha.Resource$Globalpublicdelegatedprefixes = Resource$Globalpublicdelegatedprefixes;
+ class Resource$Healthchecks {
+ constructor(context) {
+ this.context = context;
}
- let parsedUrl = url.parse(requestUrl);
- let info = this._prepareRequest(verb, parsedUrl, headers);
- // Only perform retries on reads since writes may not be idempotent.
- let maxTries = this._allowRetries && RetryableHttpVerbs.indexOf(verb) != -1
- ? this._maxRetries + 1
- : 1;
- let numTries = 0;
- let response;
- while (numTries < maxTries) {
- response = await this.requestRaw(info, data);
- // Check if it's an authentication challenge
- if (response &&
- response.message &&
- response.message.statusCode === HttpCodes.Unauthorized) {
- let authenticationHandler;
- for (let i = 0; i < this.handlers.length; i++) {
- if (this.handlers[i].canHandleAuthentication(response)) {
- authenticationHandler = this.handlers[i];
- 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;
- }
+ aggregatedList(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
}
- let redirectsRemaining = this._maxRedirects;
- while (HttpRedirectCodes.indexOf(response.message.statusCode) != -1 &&
- this._allowRedirects &&
- redirectsRemaining > 0) {
- const redirectUrl = response.message.headers['location'];
- if (!redirectUrl) {
- // if there's no location to redirect to, we won't
- break;
- }
- let parsedRedirectUrl = url.parse(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.
- await response.readBody();
- // strip authorization header if redirected to a different hostname
- if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {
- for (let 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 = await this.requestRaw(info, data);
- redirectsRemaining--;
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
}
- if (HttpResponseRetryCodes.indexOf(response.message.statusCode) == -1) {
- // If not a retry code, return immediately instead of retrying
- return response;
+ 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);
}
- numTries += 1;
- if (numTries < maxTries) {
- await response.readBody();
- await this._performExponentialBackoff(numTries);
+ else {
+ return googleapis_common_1.createAPIRequest(parameters);
}
}
- return response;
- }
- /**
- * Needs to be called if keepAlive is set to true in request options.
- */
- dispose() {
- if (this._agent) {
- this._agent.destroy();
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- this._disposed = true;
- }
- /**
- * Raw request.
- * @param info
- * @param data
- */
- requestRaw(info, data) {
- return new Promise((resolve, reject) => {
- let callbackForResult = function (err, res) {
- if (err) {
- reject(err);
- }
- resolve(res);
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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,
};
- this.requestRawWithCallback(info, data, callbackForResult);
- });
- }
- /**
- * Raw request with callback.
- * @param info
- * @param data
- * @param onResult
- */
- requestRawWithCallback(info, data, onResult) {
- let socket;
- if (typeof data === 'string') {
- info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8');
+ if (callback) {
+ googleapis_common_1.createAPIRequest(parameters, callback);
+ }
+ else {
+ return googleapis_common_1.createAPIRequest(parameters);
+ }
}
- let callbackCalled = false;
- let handleResult = (err, res) => {
- if (!callbackCalled) {
- callbackCalled = true;
- onResult(err, res);
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
}
- };
- let req = info.httpModule.request(info.options, (msg) => {
- let res = new HttpClientResponse(msg);
- handleResult(null, res);
- });
- 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();
+ if (typeof 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);
}
- handleResult(new Error('Request timeout: ' + info.options.path), null);
- });
- req.on('error', function (err) {
- // err has statusCode property
- // res should have headers
- handleResult(err, null);
- });
- if (data && typeof data === 'string') {
- req.write(data, 'utf8');
}
- if (data && typeof data !== 'string') {
- data.on('close', function () {
- req.end();
- });
- data.pipe(req);
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- else {
- req.end();
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- }
- /**
- * 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) {
- let parsedUrl = url.parse(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;
+ 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);
+ }
}
- info.options.agent = this._getAgent(info.parsedUrl);
- // gives handlers an opportunity to participate
- if (this.handlers) {
- this.handlers.forEach(handler => {
- handler.prepareRequest(info.options);
- });
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- return info;
}
- _mergeHeaders(headers) {
- const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});
- if (this.requestOptions && this.requestOptions.headers) {
- return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers));
+ 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);
+ }
}
- return lowercaseKeys(headers || {});
}
- _getExistingOrDefaultHeader(additionalHeaders, header, _default) {
- const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});
- let clientHeader;
- if (this.requestOptions && this.requestOptions.headers) {
- clientHeader = lowercaseKeys(this.requestOptions.headers)[header];
+ 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);
+ }
}
- return additionalHeaders[header] || clientHeader || _default;
}
- _getAgent(parsedUrl) {
- let agent;
- let proxyUrl = pm.getProxyUrl(parsedUrl);
- let useProxy = proxyUrl && proxyUrl.hostname;
- if (this._keepAlive && useProxy) {
- agent = this._proxyAgent;
+ compute_alpha.Resource$Httpshealthchecks = Resource$Httpshealthchecks;
+ class Resource$Images {
+ constructor(context) {
+ this.context = context;
}
- if (this._keepAlive && !useProxy) {
- agent = this._agent;
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- // if agent is already assigned use that agent.
- if (!!agent) {
- return agent;
+ 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);
+ }
}
- const usingSsl = parsedUrl.protocol === 'https:';
- let maxSockets = 100;
- if (!!this.requestOptions) {
- maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- if (useProxy) {
- // If using proxy, need tunnel
- if (!tunnel) {
- tunnel = __webpack_require__(856);
+ getFromFamily(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
}
- const agentOptions = {
- maxSockets: maxSockets,
- keepAlive: this._keepAlive,
- proxy: {
- proxyAuth: proxyUrl.auth,
- host: proxyUrl.hostname,
- port: proxyUrl.port
- }
+ if (typeof 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,
};
- let tunnelAgent;
- const overHttps = proxyUrl.protocol === 'https:';
- if (usingSsl) {
- tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp;
+ if (callback) {
+ googleapis_common_1.createAPIRequest(parameters, callback);
}
else {
- tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp;
+ return googleapis_common_1.createAPIRequest(parameters);
}
- 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: maxSockets };
- agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
- this._agent = agent;
+ 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);
+ }
}
- // if not using private agent and tunnel agent isn't setup then use global agent
- if (!agent) {
- agent = usingSsl ? https.globalAgent : http.globalAgent;
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- 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
- });
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- return agent;
- }
- _performExponentialBackoff(retryNumber) {
- retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
- const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);
- return new Promise(resolve => setTimeout(() => resolve(), ms));
- }
- static dateTimeDeserializer(key, value) {
- if (typeof value === 'string') {
- let a = new Date(value);
- if (!isNaN(a.valueOf())) {
- return a;
+ 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);
}
}
- return value;
}
- async _processResponse(res, options) {
- return new Promise(async (resolve, reject) => {
- const statusCode = res.message.statusCode;
- const response = {
- statusCode: statusCode,
- result: null,
- headers: {}
+ 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,
};
- // not found leads to null obj returned
- if (statusCode == HttpCodes.NotFound) {
- resolve(response);
+ if (callback) {
+ googleapis_common_1.createAPIRequest(parameters, callback);
}
- let obj;
- let contents;
- // get the result from the body
- try {
- contents = await res.readBody();
- if (contents && contents.length > 0) {
- if (options && options.deserializeDates) {
- obj = JSON.parse(contents, HttpClient.dateTimeDeserializer);
- }
- else {
- obj = JSON.parse(contents);
- }
- response.result = obj;
- }
- response.headers = res.message.headers;
+ else {
+ return googleapis_common_1.createAPIRequest(parameters);
}
- catch (err) {
- // Invalid resource (contents not json); leaving result obj null
+ }
+ aggregatedList(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
}
- // 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 + ')';
- }
- let err = new Error(msg);
- // attach statusCode and body obj (if available) to the error object
- err['statusCode'] = statusCode;
- if (response.result) {
- err['result'] = response.result;
- }
- reject(err);
+ if (typeof 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 {
- resolve(response);
+ 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);
}
- });
- }
-}
-exports.HttpClient = HttpClient;
-
-
-/***/ }),
-
-/***/ 550:
-/***/ (function(module, __unusedexports, __webpack_require__) {
-
-module.exports = getNextPage
-
-const getPage = __webpack_require__(265)
-
-function getNextPage (octokit, link, headers) {
- return getPage(octokit, link, 'next', headers)
-}
-
-
-/***/ }),
-
-/***/ 558:
-/***/ (function(module, __unusedexports, __webpack_require__) {
-
-module.exports = hasPreviousPage
-
-const deprecate = __webpack_require__(370)
-const getPageLinks = __webpack_require__(577)
-
-function hasPreviousPage (link) {
- deprecate(`octokit.hasPreviousPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
- return getPageLinks(link).prev
-}
-
-
-/***/ }),
-
-/***/ 562:
-/***/ (function(__unusedmodule, exports, __webpack_require__) {
-
-"use strict";
-
-
-Object.defineProperty(exports, '__esModule', { value: true });
-
-function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
-
-var osName = _interopDefault(__webpack_require__(2));
-
-function getUserAgent() {
- try {
- return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`;
- } catch (error) {
- if (/wmic os get Caption/.test(error.message)) {
- return "Windows ";
- }
-
- return "";
- }
-}
-
-exports.getUserAgent = getUserAgent;
-//# sourceMappingURL=index.js.map
-
-
-/***/ }),
-
-/***/ 563:
-/***/ (function(module, __unusedexports, __webpack_require__) {
-
-module.exports = getPreviousPage
-
-const getPage = __webpack_require__(265)
-
-function getPreviousPage (octokit, link, headers) {
- return getPage(octokit, link, 'prev', headers)
-}
-
-
-/***/ }),
-
-/***/ 568:
-/***/ (function(module, __unusedexports, __webpack_require__) {
-
-"use strict";
-
-
-const path = __webpack_require__(622);
-const niceTry = __webpack_require__(948);
-const resolveCommand = __webpack_require__(489);
-const escape = __webpack_require__(462);
-const readShebang = __webpack_require__(389);
-const semver = __webpack_require__(280);
-
-const isWin = process.platform === 'win32';
-const isExecutableRegExp = /\.(?:com|exe)$/i;
-const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
-
-// `options.shell` is supported in Node ^4.8.0, ^5.7.0 and >= 6.0.0
-const supportsShellOption = niceTry(() => semver.satisfies(process.version, '^4.8.0 || ^5.7.0 || >= 6.0.0', true)) || false;
-
-function detectShebang(parsed) {
- parsed.file = resolveCommand(parsed);
-
- const shebang = parsed.file && readShebang(parsed.file);
-
- if (shebang) {
- parsed.args.unshift(parsed.file);
- parsed.command = shebang;
-
- return resolveCommand(parsed);
- }
-
- return parsed.file;
-}
-
-function parseNonShell(parsed) {
- if (!isWin) {
- return parsed;
- }
-
- // Detect & add support for shebangs
- const commandFile = detectShebang(parsed);
-
- // We don't need a shell if the command filename is an executable
- const needsShell = !isExecutableRegExp.test(commandFile);
-
- // If a shell is required, use cmd.exe and take care of escaping everything correctly
- // Note that `forceShell` is an hidden option used only in tests
- if (parsed.options.forceShell || needsShell) {
- // Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`
- // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument
- // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,
- // we need to double escape them
- const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
-
- // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\bar)
- // This is necessary otherwise it will always fail with ENOENT in those cases
- parsed.command = path.normalize(parsed.command);
-
- // Escape command & arguments
- parsed.command = escape.command(parsed.command);
- parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
-
- const shellCommand = [parsed.command].concat(parsed.args).join(' ');
-
- parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
- parsed.command = process.env.comspec || 'cmd.exe';
- parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
- }
-
- return parsed;
-}
-
-function parseShell(parsed) {
- // If node supports the shell option, there's no need to mimic its behavior
- if (supportsShellOption) {
- return parsed;
- }
-
- // Mimic node shell option
- // See https://github.com/nodejs/node/blob/b9f6a2dc059a1062776133f3d4fd848c4da7d150/lib/child_process.js#L335
- const shellCommand = [parsed.command].concat(parsed.args).join(' ');
-
- if (isWin) {
- parsed.command = typeof parsed.options.shell === 'string' ? parsed.options.shell : process.env.comspec || 'cmd.exe';
- parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
- parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
- } else {
- if (typeof parsed.options.shell === 'string') {
- parsed.command = parsed.options.shell;
- } else if (process.platform === 'android') {
- parsed.command = '/system/bin/sh';
- } else {
- parsed.command = '/bin/sh';
}
-
- parsed.args = ['-c', shellCommand];
- }
-
- return parsed;
-}
-
-function parse(command, args, options) {
- // Normalize arguments, similar to nodejs
- if (args && !Array.isArray(args)) {
- options = args;
- args = null;
- }
-
- args = args ? args.slice(0) : []; // Clone array to avoid changing the original
- options = Object.assign({}, options); // Clone object to avoid changing the original
-
- // Build our parsed object
- const parsed = {
- command,
- args,
- options,
- file: undefined,
- original: {
- command,
- args,
- },
- };
-
- // Delegate further parsing to shell or non-shell
- return options.shell ? parseShell(parsed) : parseNonShell(parsed);
-}
-
-module.exports = parse;
-
-
-/***/ }),
-
-/***/ 577:
-/***/ (function(module) {
-
-module.exports = getPageLinks
-
-function getPageLinks (link) {
- link = link.link || link.headers.link || ''
-
- const links = {}
-
- // link format:
- // '; rel="next", ; rel="last"'
- link.replace(/<([^>]*)>;\s*rel="([\w]*)"/g, (m, uri, type) => {
- links[type] = uri
- })
-
- return links
-}
-
-
-/***/ }),
-
-/***/ 605:
-/***/ (function(module) {
-
-module.exports = require("http");
-
-/***/ }),
-
-/***/ 614:
-/***/ (function(module) {
-
-module.exports = require("events");
-
-/***/ }),
-
-/***/ 621:
-/***/ (function(module, __unusedexports, __webpack_require__) {
-
-"use strict";
-
-const path = __webpack_require__(622);
-const pathKey = __webpack_require__(39);
-
-module.exports = opts => {
- opts = Object.assign({
- cwd: process.cwd(),
- path: process.env[pathKey()]
- }, opts);
-
- let prev;
- let pth = path.resolve(opts.cwd);
- const ret = [];
-
- while (prev !== pth) {
- ret.push(path.join(pth, 'node_modules/.bin'));
- prev = pth;
- pth = path.resolve(pth, '..');
- }
-
- // ensure the running `node` binary is used
- ret.push(path.dirname(process.execPath));
-
- return ret.concat(opts.path).join(path.delimiter);
-};
-
-module.exports.env = opts => {
- opts = Object.assign({
- env: process.env
- }, opts);
-
- const env = Object.assign({}, opts.env);
- const path = pathKey({env});
-
- opts.path = env[path];
- env[path] = module.exports(opts);
-
- return env;
-};
-
-
-/***/ }),
-
-/***/ 622:
-/***/ (function(module) {
-
-module.exports = require("path");
-
-/***/ }),
-
-/***/ 631:
-/***/ (function(module) {
-
-module.exports = require("net");
-
-/***/ }),
-
-/***/ 649:
-/***/ (function(module, __unusedexports, __webpack_require__) {
-
-module.exports = getLastPage
-
-const getPage = __webpack_require__(265)
-
-function getLastPage (octokit, link, headers) {
- return getPage(octokit, link, 'last', headers)
-}
-
-
-/***/ }),
-
-/***/ 654:
-/***/ (function(module) {
-
-// This is not the set of all possible signals.
-//
-// It IS, however, the set of all signals that trigger
-// an exit on either Linux or BSD systems. Linux is a
-// superset of the signal names supported on BSD, and
-// the unknown signals just fail to register, so we can
-// catch that easily enough.
-//
-// Don't bother with SIGKILL. It's uncatchable, which
-// means that we can't fire any callbacks anyway.
-//
-// If a user does happen to register a handler on a non-
-// fatal signal like SIGWINCH or something, and then
-// exit, it'll end up firing `process.emit('exit')`, so
-// the handler will be fired anyway.
-//
-// SIGBUS, SIGFPE, SIGSEGV and SIGILL, when not raised
-// artificially, inherently leave the process in a
-// state from which it is not safe to try and enter JS
-// listeners.
-module.exports = [
- 'SIGABRT',
- 'SIGALRM',
- 'SIGHUP',
- 'SIGINT',
- 'SIGTERM'
-]
-
-if (process.platform !== 'win32') {
- module.exports.push(
- 'SIGVTALRM',
- 'SIGXCPU',
- 'SIGXFSZ',
- 'SIGUSR2',
- 'SIGTRAP',
- 'SIGSYS',
- 'SIGQUIT',
- 'SIGIOT'
- // should detect profiler and enable/disable accordingly.
- // see #21
- // 'SIGPROF'
- )
-}
-
-if (process.platform === 'linux') {
- module.exports.push(
- 'SIGIO',
- 'SIGPOLL',
- 'SIGPWR',
- 'SIGSTKFLT',
- 'SIGUNUSED'
- )
-}
-
-
-/***/ }),
-
-/***/ 669:
-/***/ (function(module) {
-
-module.exports = require("util");
-
-/***/ }),
-
-/***/ 675:
-/***/ (function(module) {
-
-module.exports = function btoa(str) {
- return new Buffer(str).toString('base64')
-}
-
-
-/***/ }),
-
-/***/ 682:
-/***/ (function(__unusedmodule, __unusedexports, __webpack_require__) {
-
-// Copyright 2020 The Oppia Authors. All Rights Reserved.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS-IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-/**
- * @fileoverview Entry point of oppiabot github actions.
- */
-
-const core = __webpack_require__(470);
-const { context } = __webpack_require__(469);
-const dispatcher = __webpack_require__(760);
-
-core.info(
- `About to dispatch:${context.eventName} and ${context.payload.action}.`
-);
-dispatcher.dispatch(context.eventName, context.payload.action);
-
-
-/***/ }),
-
-/***/ 692:
-/***/ (function(__unusedmodule, exports) {
-
-"use strict";
-
-
-Object.defineProperty(exports, '__esModule', { value: true });
-
-class Deprecation extends Error {
- constructor(message) {
- super(message); // Maintains proper stack trace (only available on V8)
-
- /* istanbul ignore next */
-
- if (Error.captureStackTrace) {
- Error.captureStackTrace(this, this.constructor);
}
-
- this.name = 'Deprecation';
- }
-
-}
-
-exports.Deprecation = Deprecation;
-
-
-/***/ }),
-
-/***/ 696:
-/***/ (function(module) {
-
-"use strict";
-
-
-/*!
- * isobject
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */
-
-function isObject(val) {
- return val != null && typeof val === 'object' && Array.isArray(val) === false;
-}
-
-/*!
- * is-plain-object
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */
-
-function isObjectObject(o) {
- return isObject(o) === true
- && Object.prototype.toString.call(o) === '[object Object]';
-}
-
-function isPlainObject(o) {
- var ctor,prot;
-
- if (isObjectObject(o) === false) return false;
-
- // If has modified constructor
- ctor = o.constructor;
- if (typeof ctor !== 'function') return false;
-
- // If has modified prototype
- prot = ctor.prototype;
- if (isObjectObject(prot) === false) return false;
-
- // If constructor does not have an Object-specific method
- if (prot.hasOwnProperty('isPrototypeOf') === false) {
- return false;
- }
-
- // Most likely a plain Object
- return true;
-}
-
-module.exports = isPlainObject;
-
-
-/***/ }),
-
-/***/ 697:
-/***/ (function(module) {
-
-"use strict";
-
-module.exports = (promise, onFinally) => {
- onFinally = onFinally || (() => {});
-
- return promise.then(
- val => new Promise(resolve => {
- resolve(onFinally());
- }).then(() => val),
- err => new Promise(resolve => {
- resolve(onFinally());
- }).then(() => {
- throw err;
- })
- );
-};
-
-
-/***/ }),
-
-/***/ 741:
-/***/ (function(module, __unusedexports, __webpack_require__) {
-
-const { requestLog } = __webpack_require__(916);
-const {
- restEndpointMethods
-} = __webpack_require__(842);
-
-const Core = __webpack_require__(37);
-
-const CORE_PLUGINS = [
- __webpack_require__(890),
- __webpack_require__(953), // deprecated: remove in v17
- requestLog,
- __webpack_require__(786),
- restEndpointMethods,
- __webpack_require__(341),
-
- __webpack_require__(850) // deprecated: remove in v17
-];
-
-const OctokitRest = Core.plugin(CORE_PLUGINS);
-
-function DeprecatedOctokit(options) {
- const warn =
- options && options.log && options.log.warn
- ? options.log.warn
- : console.warn;
- warn(
- '[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead'
- );
- return new OctokitRest(options);
-}
-
-const Octokit = Object.assign(DeprecatedOctokit, {
- Octokit: OctokitRest
-});
-
-Object.keys(OctokitRest).forEach(key => {
- /* istanbul ignore else */
- if (OctokitRest.hasOwnProperty(key)) {
- Octokit[key] = OctokitRest[key];
- }
-});
-
-module.exports = Octokit;
-
-
-/***/ }),
-
-/***/ 742:
-/***/ (function(module, __unusedexports, __webpack_require__) {
-
-var fs = __webpack_require__(747)
-var core
-if (process.platform === 'win32' || global.TESTING_WINDOWS) {
- core = __webpack_require__(818)
-} else {
- core = __webpack_require__(197)
-}
-
-module.exports = isexe
-isexe.sync = sync
-
-function isexe (path, options, cb) {
- if (typeof options === 'function') {
- cb = options
- options = {}
- }
-
- if (!cb) {
- if (typeof Promise !== 'function') {
- throw new TypeError('callback not provided')
+ 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);
+ }
+ }
}
-
- return new Promise(function (resolve, reject) {
- isexe(path, options || {}, function (er, is) {
- if (er) {
- reject(er)
- } else {
- resolve(is)
+ 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);
+ }
}
- })
- })
- }
-
- core(path, options || {}, function (er, is) {
- // ignore EACCES because that just means we aren't allowed to run it
- if (er) {
- if (er.code === 'EACCES' || options && options.ignoreErrors) {
- er = null
- is = false
- }
}
- cb(er, is)
- })
-}
-
-function sync (path, options) {
- // my kingdom for a filtered catch
- try {
- return core.sync(path, options || {})
- } catch (er) {
- if (options && options.ignoreErrors || er.code === 'EACCES') {
- return false
- } else {
- throw er
+ 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);
+ }
+ }
}
- }
-}
-
-
-/***/ }),
-
-/***/ 747:
-/***/ (function(module) {
-
-module.exports = require("fs");
-
-/***/ }),
-
-/***/ 753:
-/***/ (function(__unusedmodule, exports, __webpack_require__) {
-
-"use strict";
-
-
-Object.defineProperty(exports, '__esModule', { value: true });
-
-function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
-
-var endpoint = __webpack_require__(385);
-var universalUserAgent = __webpack_require__(211);
-var isPlainObject = _interopDefault(__webpack_require__(696));
-var nodeFetch = _interopDefault(__webpack_require__(454));
-var requestError = __webpack_require__(463);
-
-const VERSION = "5.4.2";
-
-function getBufferResponse(response) {
- return response.arrayBuffer();
-}
-
-function fetchWrapper(requestOptions) {
- if (isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) {
- requestOptions.body = JSON.stringify(requestOptions.body);
- }
-
- let headers = {};
- let status;
- let url;
- const fetch = requestOptions.request && requestOptions.request.fetch || nodeFetch;
- return fetch(requestOptions.url, Object.assign({
- method: requestOptions.method,
- body: requestOptions.body,
- headers: requestOptions.headers,
- redirect: requestOptions.redirect
- }, requestOptions.request)).then(response => {
- url = response.url;
- status = response.status;
-
- for (const keyAndValue of response.headers) {
- headers[keyAndValue[0]] = keyAndValue[1];
+ 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);
+ }
+ }
}
-
- if (status === 204 || status === 205) {
- return;
- } // GitHub API returns 200 for HEAD requests
-
-
- if (requestOptions.method === "HEAD") {
- if (status < 400) {
- return;
- }
-
- throw new requestError.RequestError(response.statusText, status, {
- headers,
- request: requestOptions
- });
+ 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);
+ }
+ }
}
-
- if (status === 304) {
- throw new requestError.RequestError("Not modified", status, {
- headers,
- request: requestOptions
- });
+ 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);
+ }
+ }
}
-
- if (status >= 400) {
- return response.text().then(message => {
- const error = new requestError.RequestError(message, status, {
- headers,
- request: requestOptions
- });
-
- try {
- let responseBody = JSON.parse(error.message);
- Object.assign(error, responseBody);
- let errors = responseBody.errors; // Assumption `errors` would always be in Array format
-
- error.message = error.message + ": " + errors.map(JSON.stringify).join(", ");
- } catch (e) {// ignore, see octokit/rest.js#684
+ 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);
+ }
}
-
- throw error;
- });
}
-
- const contentType = response.headers.get("content-type");
-
- if (/application\/json/.test(contentType)) {
- return response.json();
+ 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);
+ }
+ }
}
-
- if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) {
- return response.text();
+ 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);
+ }
+ }
}
-
- return getBufferResponse(response);
- }).then(data => {
- return {
- status,
- url,
- headers,
- data
- };
- }).catch(error => {
- if (error instanceof requestError.RequestError) {
- throw error;
+ 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);
+ }
+ }
}
-
- throw new requestError.RequestError(error.message, 500, {
- headers,
- request: requestOptions
- });
- });
-}
-
-function withDefaults(oldEndpoint, newDefaults) {
- const endpoint = oldEndpoint.defaults(newDefaults);
-
- const newApi = function (route, parameters) {
- const endpointOptions = endpoint.merge(route, parameters);
-
- if (!endpointOptions.request || !endpointOptions.request.hook) {
- return fetchWrapper(endpoint.parse(endpointOptions));
+ 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);
+ }
+ }
}
-
- const request = (route, parameters) => {
- return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters)));
- };
-
- Object.assign(request, {
- endpoint,
- defaults: withDefaults.bind(null, endpoint)
- });
- return endpointOptions.request.hook(request, endpointOptions);
- };
-
- return Object.assign(newApi, {
- endpoint,
- defaults: withDefaults.bind(null, endpoint)
- });
-}
-
-const request = withDefaults(endpoint.endpoint, {
- headers: {
- "user-agent": `octokit-request.js/${VERSION} ${universalUserAgent.getUserAgent()}`
- }
-});
-
-exports.request = request;
-//# sourceMappingURL=index.js.map
-
-
-/***/ }),
-
-/***/ 760:
-/***/ (function(module, __unusedexports, __webpack_require__) {
-
-// Copyright 2020 The Oppia Authors. All Rights Reserved.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS-IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-/**
- * @fileoverview Handles dispatching events and actions to different handlers.
- */
-
-const core = __webpack_require__(470);
-const { context } = __webpack_require__(469);
-const issueLabelsModule = __webpack_require__(293);
-const constants = __webpack_require__(208);
-
-const EVENTS = {
- ISSUES: 'issues',
-};
-const ACTIONS = {
- LABELLED: 'labeled'
-};
-module.exports = {
- async dispatch(event, action) {
- core.info(`Received Event:${event} Action:${action}.`);
- const checkEvent = `${event}_${action}`;
- const repoName = context.payload.repository.name.toLowerCase();
- const checksWhitelist = constants.getChecksWhitelist();
- if (checksWhitelist.hasOwnProperty(repoName)) {
- const checks = checksWhitelist[repoName];
- if (checks.hasOwnProperty(checkEvent)) {
- const checkList = checks[checkEvent];
- for (var i = 0; i < checkList.length; i++) {
- switch (checkList[i]) {
- case constants.issuesLabelCheck:
- await issueLabelsModule.checkLabels();
- break;
- }
+ 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);
+ }
}
- }
- }
- }
-};
-
-
-/***/ }),
-
-/***/ 761:
-/***/ (function(module) {
-
-module.exports = require("zlib");
-
-/***/ }),
-
-/***/ 768:
-/***/ (function(module) {
-
-"use strict";
-
-module.exports = function (x) {
- var lf = typeof x === 'string' ? '\n' : '\n'.charCodeAt();
- var cr = typeof x === 'string' ? '\r' : '\r'.charCodeAt();
-
- if (x[x.length - 1] === lf) {
- x = x.slice(0, x.length - 1);
- }
-
- if (x[x.length - 1] === cr) {
- x = x.slice(0, x.length - 1);
- }
-
- return x;
-};
-
-
-/***/ }),
-
-/***/ 777:
-/***/ (function(module, __unusedexports, __webpack_require__) {
-
-module.exports = getFirstPage
-
-const getPage = __webpack_require__(265)
-
-function getFirstPage (octokit, link, headers) {
- return getPage(octokit, link, 'first', headers)
-}
-
-
-/***/ }),
-
-/***/ 786:
-/***/ (function(module, __unusedexports, __webpack_require__) {
-
-module.exports = paginatePlugin;
-
-const { paginateRest } = __webpack_require__(299);
-
-function paginatePlugin(octokit) {
- Object.assign(octokit, paginateRest(octokit));
-}
-
-
-/***/ }),
-
-/***/ 790:
-/***/ (function(module, __unusedexports, __webpack_require__) {
-
-module.exports = authenticate;
-
-const { Deprecation } = __webpack_require__(692);
-const once = __webpack_require__(969);
-
-const deprecateAuthenticate = once((log, deprecation) => log.warn(deprecation));
-
-function authenticate(state, options) {
- deprecateAuthenticate(
- state.octokit.log,
- new Deprecation(
- '[@octokit/rest] octokit.authenticate() is deprecated. Use "auth" constructor option instead.'
- )
- );
-
- if (!options) {
- state.auth = false;
- return;
- }
-
- switch (options.type) {
- case "basic":
- if (!options.username || !options.password) {
- throw new Error(
- "Basic authentication requires both a username and password to be set"
- );
- }
- break;
-
- case "oauth":
- if (!options.token && !(options.key && options.secret)) {
- throw new Error(
- "OAuth2 authentication requires a token or key & secret to be set"
- );
- }
- break;
-
- case "token":
- case "app":
- if (!options.token) {
- throw new Error("Token authentication requires a token to be set");
- }
- break;
-
- default:
- throw new Error(
- "Invalid authentication type, must be 'basic', 'oauth', 'token' or 'app'"
- );
- }
-
- state.auth = options;
-}
-
-
-/***/ }),
-
-/***/ 813:
-/***/ (function(__unusedmodule, exports) {
-
-"use strict";
-
-
-Object.defineProperty(exports, '__esModule', { value: true });
-
-async function auth(token) {
- const tokenType = token.split(/\./).length === 3 ? "app" : /^v\d+\./.test(token) ? "installation" : "oauth";
- return {
- type: "token",
- token: token,
- tokenType
- };
-}
-
-/**
- * Prefix token for usage in the Authorization header
- *
- * @param token OAuth token or JSON Web Token
- */
-function withAuthorizationPrefix(token) {
- if (token.split(/\./).length === 3) {
- return `bearer ${token}`;
- }
-
- return `token ${token}`;
-}
-
-async function hook(token, request, route, parameters) {
- const endpoint = request.endpoint.merge(route, parameters);
- endpoint.headers.authorization = withAuthorizationPrefix(token);
- return request(endpoint);
-}
-
-const createTokenAuth = function createTokenAuth(token) {
- if (!token) {
- throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
- }
-
- if (typeof token !== "string") {
- throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");
- }
-
- token = token.replace(/^(token|bearer) +/i, "");
- return Object.assign(auth.bind(null, token), {
- hook: hook.bind(null, token)
- });
-};
-
-exports.createTokenAuth = createTokenAuth;
-//# sourceMappingURL=index.js.map
-
-
-/***/ }),
-
-/***/ 814:
-/***/ (function(module, __unusedexports, __webpack_require__) {
-
-module.exports = which
-which.sync = whichSync
-
-var isWindows = process.platform === 'win32' ||
- process.env.OSTYPE === 'cygwin' ||
- process.env.OSTYPE === 'msys'
-
-var path = __webpack_require__(622)
-var COLON = isWindows ? ';' : ':'
-var isexe = __webpack_require__(742)
-
-function getNotFoundError (cmd) {
- var er = new Error('not found: ' + cmd)
- er.code = 'ENOENT'
-
- return er
-}
-
-function getPathInfo (cmd, opt) {
- var colon = opt.colon || COLON
- var pathEnv = opt.path || process.env.PATH || ''
- var pathExt = ['']
-
- pathEnv = pathEnv.split(colon)
-
- var pathExtExe = ''
- if (isWindows) {
- pathEnv.unshift(process.cwd())
- pathExtExe = (opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM')
- pathExt = pathExtExe.split(colon)
-
-
- // Always test the cmd itself first. isexe will check to make sure
- // it's found in the pathExt set.
- if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')
- pathExt.unshift('')
- }
-
- // If it has a slash, then we don't bother searching the pathenv.
- // just check the file itself, and that's it.
- if (cmd.match(/\//) || isWindows && cmd.match(/\\/))
- pathEnv = ['']
-
- return {
- env: pathEnv,
- ext: pathExt,
- extExe: pathExtExe
- }
-}
-
-function which (cmd, opt, cb) {
- if (typeof opt === 'function') {
- cb = opt
- opt = {}
- }
-
- var info = getPathInfo(cmd, opt)
- var pathEnv = info.env
- var pathExt = info.ext
- var pathExtExe = info.extExe
- var found = []
-
- ;(function F (i, l) {
- if (i === l) {
- if (opt.all && found.length)
- return cb(null, found)
- else
- return cb(getNotFoundError(cmd))
}
-
- var pathPart = pathEnv[i]
- if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"')
- pathPart = pathPart.slice(1, -1)
-
- var p = path.join(pathPart, cmd)
- if (!pathPart && (/^\.[\\\/]/).test(cmd)) {
- p = cmd.slice(0, 2) + p
+ 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);
+ }
+ }
}
- ;(function E (ii, ll) {
- if (ii === ll) return F(i + 1, l)
- var ext = pathExt[ii]
- isexe(p + ext, { pathExt: pathExtExe }, function (er, is) {
- if (!er && is) {
- if (opt.all)
- found.push(p + ext)
- else
- return cb(null, p + ext)
+ 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);
+ }
}
- return E(ii + 1, ll)
- })
- })(0, pathExt.length)
- })(0, pathEnv.length)
-}
-
-function whichSync (cmd, opt) {
- opt = opt || {}
-
- var info = getPathInfo(cmd, opt)
- var pathEnv = info.env
- var pathExt = info.ext
- var pathExtExe = info.extExe
- var found = []
-
- for (var i = 0, l = pathEnv.length; i < l; i ++) {
- var pathPart = pathEnv[i]
- if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"')
- pathPart = pathPart.slice(1, -1)
-
- var p = path.join(pathPart, cmd)
- if (!pathPart && /^\.[\\\/]/.test(cmd)) {
- p = cmd.slice(0, 2) + p
}
- for (var j = 0, ll = pathExt.length; j < ll; j ++) {
- var cur = p + pathExt[j]
- var is
- try {
- is = isexe.sync(cur, { pathExt: pathExtExe })
- if (is) {
- if (opt.all)
- found.push(cur)
- else
- return cur
+ 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);
+ }
}
- } catch (ex) {}
}
- }
-
- if (opt.all && found.length)
- return found
-
- if (opt.nothrow)
- return null
-
- throw getNotFoundError(cmd)
-}
-
-
-/***/ }),
-
-/***/ 816:
-/***/ (function(module) {
-
-"use strict";
-
-module.exports = /^#!.*/;
-
-
-/***/ }),
-
-/***/ 818:
-/***/ (function(module, __unusedexports, __webpack_require__) {
-
-module.exports = isexe
-isexe.sync = sync
-
-var fs = __webpack_require__(747)
-
-function checkPathExt (path, options) {
- var pathext = options.pathExt !== undefined ?
- options.pathExt : process.env.PATHEXT
-
- if (!pathext) {
- return true
- }
-
- pathext = pathext.split(';')
- if (pathext.indexOf('') !== -1) {
- return true
- }
- for (var i = 0; i < pathext.length; i++) {
- var p = pathext[i].toLowerCase()
- if (p && path.substr(-p.length).toLowerCase() === p) {
- return true
+ 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);
+ }
+ }
}
- }
- return false
-}
-
-function checkStat (stat, path, options) {
- if (!stat.isSymbolicLink() && !stat.isFile()) {
- return false
- }
- return checkPathExt(path, options)
-}
-
-function isexe (path, options, cb) {
- fs.stat(path, function (er, stat) {
- cb(er, er ? false : checkStat(stat, path, options))
- })
-}
-
-function sync (path, options) {
- return checkStat(fs.statSync(path), path, options)
-}
-
-
-/***/ }),
-
-/***/ 835:
-/***/ (function(module) {
-
-module.exports = require("url");
-
-/***/ }),
-
-/***/ 842:
-/***/ (function(__unusedmodule, exports, __webpack_require__) {
-
-"use strict";
-
-
-Object.defineProperty(exports, '__esModule', { value: true });
-
-var deprecation = __webpack_require__(692);
-
-var endpointsByScope = {
- actions: {
- cancelWorkflowRun: {
- method: "POST",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- run_id: {
- required: true,
- type: "integer"
+ compute_alpha.Resource$Packetmirrorings = Resource$Packetmirrorings;
+ class Resource$Projects {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/actions/runs/:run_id/cancel"
- },
- createOrUpdateSecretForRepo: {
- method: "PUT",
- params: {
- encrypted_value: {
- type: "string"
- },
- key_id: {
- type: "string"
- },
- name: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/actions/secrets/:name"
- },
- createRegistrationToken: {
- method: "POST",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/actions/runners/registration-token"
- },
- createRemoveToken: {
- method: "POST",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/actions/runners/remove-token"
- },
- deleteArtifact: {
- method: "DELETE",
- params: {
- artifact_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/actions/artifacts/:artifact_id"
- },
- deleteSecretFromRepo: {
- method: "DELETE",
- params: {
- name: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/actions/secrets/:name"
- },
- downloadArtifact: {
- method: "GET",
- params: {
- archive_format: {
- required: true,
- type: "string"
- },
- artifact_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format"
- },
- getArtifact: {
- method: "GET",
- params: {
- artifact_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/actions/artifacts/:artifact_id"
- },
- getPublicKey: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/actions/secrets/public-key"
- },
- getSecret: {
- method: "GET",
- params: {
- name: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/actions/secrets/:name"
- },
- getSelfHostedRunner: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- runner_id: {
- required: true,
- type: "integer"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/actions/runners/:runner_id"
- },
- getWorkflow: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- workflow_id: {
- required: true,
- type: "integer"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/actions/workflows/:workflow_id"
- },
- getWorkflowJob: {
- method: "GET",
- params: {
- job_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/actions/jobs/:job_id"
- },
- getWorkflowRun: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- run_id: {
- required: true,
- type: "integer"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/actions/runs/:run_id"
- },
- listDownloadsForSelfHostedRunnerApplication: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/actions/runners/downloads"
- },
- listJobsForWorkflowRun: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- run_id: {
- required: true,
- type: "integer"
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/actions/runs/:run_id/jobs"
- },
- listRepoWorkflowRuns: {
- method: "GET",
- params: {
- actor: {
- type: "string"
- },
- branch: {
- type: "string"
- },
- event: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- status: {
- enum: ["completed", "status", "conclusion"],
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/actions/runs"
- },
- listRepoWorkflows: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/actions/workflows"
- },
- listSecretsForRepo: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/actions/secrets"
- },
- listSelfHostedRunnersForRepo: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ compute_alpha.Resource$Publicadvertisedprefixes = Resource$Publicadvertisedprefixes;
+ class Resource$Publicdelegatedprefixes {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/actions/runners"
- },
- listWorkflowJobLogs: {
- method: "GET",
- params: {
- job_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/actions/jobs/:job_id/logs"
- },
- listWorkflowRunArtifacts: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- run_id: {
- required: true,
- type: "integer"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/actions/runs/:run_id/artifacts"
- },
- listWorkflowRunLogs: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- run_id: {
- required: true,
- type: "integer"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/actions/runs/:run_id/logs"
- },
- listWorkflowRuns: {
- method: "GET",
- params: {
- actor: {
- type: "string"
- },
- branch: {
- type: "string"
- },
- event: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- status: {
- enum: ["completed", "status", "conclusion"],
- type: "string"
- },
- workflow_id: {
- required: true,
- type: "integer"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/actions/workflows/:workflow_id/runs"
- },
- reRunWorkflow: {
- method: "POST",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- run_id: {
- required: true,
- type: "integer"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/actions/runs/:run_id/rerun"
- },
- removeSelfHostedRunner: {
- method: "DELETE",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- runner_id: {
- required: true,
- type: "integer"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/actions/runners/:runner_id"
}
- },
- activity: {
- checkStarringRepo: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ compute_alpha.Resource$Publicdelegatedprefixes = Resource$Publicdelegatedprefixes;
+ class Resource$Regionautoscalers {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/user/starred/:owner/:repo"
- },
- deleteRepoSubscription: {
- method: "DELETE",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/subscription"
- },
- deleteThreadSubscription: {
- method: "DELETE",
- params: {
- thread_id: {
- required: true,
- type: "integer"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/notifications/threads/:thread_id/subscription"
- },
- getRepoSubscription: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/subscription"
- },
- getThread: {
- method: "GET",
- params: {
- thread_id: {
- required: true,
- type: "integer"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/notifications/threads/:thread_id"
- },
- getThreadSubscription: {
- method: "GET",
- params: {
- thread_id: {
- required: true,
- type: "integer"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/notifications/threads/:thread_id/subscription"
- },
- listEventsForOrg: {
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- username: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/users/:username/events/orgs/:org"
- },
- listEventsForUser: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- username: {
- required: true,
- type: "string"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/users/:username/events"
- },
- listFeeds: {
- method: "GET",
- params: {},
- url: "/feeds"
- },
- listNotifications: {
- method: "GET",
- params: {
- all: {
- type: "boolean"
- },
- before: {
- type: "string"
- },
- page: {
- type: "integer"
- },
- participating: {
- type: "boolean"
- },
- per_page: {
- type: "integer"
- },
- since: {
- type: "string"
+ }
+ compute_alpha.Resource$Regionautoscalers = Resource$Regionautoscalers;
+ class Resource$Regionbackendservices {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/notifications"
- },
- listNotificationsForRepo: {
- method: "GET",
- params: {
- all: {
- type: "boolean"
- },
- before: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- participating: {
- type: "boolean"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- since: {
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/notifications"
- },
- listPublicEvents: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/events"
- },
- listPublicEventsForOrg: {
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/orgs/:org/events"
- },
- listPublicEventsForRepoNetwork: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/networks/:owner/:repo/events"
- },
- listPublicEventsForUser: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- username: {
- required: true,
- type: "string"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/users/:username/events/public"
- },
- listReceivedEventsForUser: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- username: {
- required: true,
- type: "string"
+ }
+ compute_alpha.Resource$Regionbackendservices = Resource$Regionbackendservices;
+ class Resource$Regioncommitments {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/users/:username/received_events"
- },
- listReceivedPublicEventsForUser: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- username: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/users/:username/received_events/public"
- },
- listRepoEvents: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/events"
- },
- listReposStarredByAuthenticatedUser: {
- method: "GET",
- params: {
- direction: {
- enum: ["asc", "desc"],
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- sort: {
- enum: ["created", "updated"],
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/user/starred"
- },
- listReposStarredByUser: {
- method: "GET",
- params: {
- direction: {
- enum: ["asc", "desc"],
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- sort: {
- enum: ["created", "updated"],
- type: "string"
- },
- username: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/users/:username/starred"
- },
- listReposWatchedByUser: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- username: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/users/:username/subscriptions"
- },
- listStargazersForRepo: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/stargazers"
- },
- listWatchedReposForAuthenticatedUser: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ }
+ compute_alpha.Resource$Regioncommitments = Resource$Regioncommitments;
+ class Resource$Regiondisks {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/user/subscriptions"
- },
- listWatchersForRepo: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/subscribers"
- },
- markAsRead: {
- method: "PUT",
- params: {
- last_read_at: {
- type: "string"
+ 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);
+ }
}
- },
- url: "/notifications"
- },
- markNotificationsAsReadForRepo: {
- method: "PUT",
- params: {
- last_read_at: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/notifications"
- },
- markThreadAsRead: {
- method: "PATCH",
- params: {
- thread_id: {
- required: true,
- type: "integer"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/notifications/threads/:thread_id"
- },
- setRepoSubscription: {
- method: "PUT",
- params: {
- ignored: {
- type: "boolean"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- subscribed: {
- type: "boolean"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/subscription"
- },
- setThreadSubscription: {
- method: "PUT",
- params: {
- ignored: {
- type: "boolean"
- },
- thread_id: {
- required: true,
- type: "integer"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/notifications/threads/:thread_id/subscription"
- },
- starRepo: {
- method: "PUT",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/user/starred/:owner/:repo"
- },
- unstarRepo: {
- method: "DELETE",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/user/starred/:owner/:repo"
}
- },
- apps: {
- addRepoToInstallation: {
- headers: {
- accept: "application/vnd.github.machine-man-preview+json"
- },
- method: "PUT",
- params: {
- installation_id: {
- required: true,
- type: "integer"
- },
- repository_id: {
- required: true,
- type: "integer"
+ compute_alpha.Resource$Regiondisks = Resource$Regiondisks;
+ class Resource$Regiondisktypes {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/user/installations/:installation_id/repositories/:repository_id"
- },
- checkAccountIsAssociatedWithAny: {
- method: "GET",
- params: {
- account_id: {
- required: true,
- type: "integer"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/marketplace_listing/accounts/:account_id"
- },
- checkAccountIsAssociatedWithAnyStubbed: {
- method: "GET",
- params: {
- account_id: {
- required: true,
- type: "integer"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/marketplace_listing/stubbed/accounts/:account_id"
- },
- checkAuthorization: {
- deprecated: "octokit.apps.checkAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization",
- method: "GET",
- params: {
- access_token: {
- required: true,
- type: "string"
- },
- client_id: {
- required: true,
- type: "string"
+ }
+ 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);
+ }
}
- },
- url: "/applications/:client_id/tokens/:access_token"
- },
- checkToken: {
- headers: {
- accept: "application/vnd.github.doctor-strange-preview+json"
- },
- method: "POST",
- params: {
- access_token: {
- type: "string"
- },
- client_id: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/applications/:client_id/token"
- },
- createContentAttachment: {
- headers: {
- accept: "application/vnd.github.corsair-preview+json"
- },
- method: "POST",
- params: {
- body: {
- required: true,
- type: "string"
- },
- content_reference_id: {
- required: true,
- type: "integer"
- },
- title: {
- required: true,
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/content_references/:content_reference_id/attachments"
- },
- createFromManifest: {
- headers: {
- accept: "application/vnd.github.fury-preview+json"
- },
- method: "POST",
- params: {
- code: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/app-manifests/:code/conversions"
- },
- createInstallationToken: {
- headers: {
- accept: "application/vnd.github.machine-man-preview+json"
- },
- method: "POST",
- params: {
- installation_id: {
- required: true,
- type: "integer"
- },
- permissions: {
- type: "object"
- },
- repository_ids: {
- type: "integer[]"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/app/installations/:installation_id/access_tokens"
- },
- deleteAuthorization: {
- headers: {
- accept: "application/vnd.github.doctor-strange-preview+json"
- },
- method: "DELETE",
- params: {
- access_token: {
- type: "string"
- },
- client_id: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/applications/:client_id/grant"
- },
- deleteInstallation: {
- headers: {
- accept: "application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json"
- },
- method: "DELETE",
- params: {
- installation_id: {
- required: true,
- type: "integer"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/app/installations/:installation_id"
- },
- deleteToken: {
- headers: {
- accept: "application/vnd.github.doctor-strange-preview+json"
- },
- method: "DELETE",
- params: {
- access_token: {
- type: "string"
- },
- client_id: {
- required: true,
- type: "string"
+ }
+ compute_alpha.Resource$Regionhealthchecks = Resource$Regionhealthchecks;
+ class Resource$Regionhealthcheckservices {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/applications/:client_id/token"
- },
- findOrgInstallation: {
- deprecated: "octokit.apps.findOrgInstallation() has been renamed to octokit.apps.getOrgInstallation() (2019-04-10)",
- headers: {
- accept: "application/vnd.github.machine-man-preview+json"
- },
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/orgs/:org/installation"
- },
- findRepoInstallation: {
- deprecated: "octokit.apps.findRepoInstallation() has been renamed to octokit.apps.getRepoInstallation() (2019-04-10)",
- headers: {
- accept: "application/vnd.github.machine-man-preview+json"
- },
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/installation"
- },
- findUserInstallation: {
- deprecated: "octokit.apps.findUserInstallation() has been renamed to octokit.apps.getUserInstallation() (2019-04-10)",
- headers: {
- accept: "application/vnd.github.machine-man-preview+json"
- },
- method: "GET",
- params: {
- username: {
- required: true,
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/users/:username/installation"
- },
- getAuthenticated: {
- headers: {
- accept: "application/vnd.github.machine-man-preview+json"
- },
- method: "GET",
- params: {},
- url: "/app"
- },
- getBySlug: {
- headers: {
- accept: "application/vnd.github.machine-man-preview+json"
- },
- method: "GET",
- params: {
- app_slug: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/apps/:app_slug"
- },
- getInstallation: {
- headers: {
- accept: "application/vnd.github.machine-man-preview+json"
- },
- method: "GET",
- params: {
- installation_id: {
- required: true,
- type: "integer"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/app/installations/:installation_id"
- },
- getOrgInstallation: {
- headers: {
- accept: "application/vnd.github.machine-man-preview+json"
- },
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/orgs/:org/installation"
- },
- getRepoInstallation: {
- headers: {
- accept: "application/vnd.github.machine-man-preview+json"
- },
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ compute_alpha.Resource$Regionhealthcheckservices = Resource$Regionhealthcheckservices;
+ class Resource$Regioninplacesnapshots {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/installation"
- },
- getUserInstallation: {
- headers: {
- accept: "application/vnd.github.machine-man-preview+json"
- },
- method: "GET",
- params: {
- username: {
- required: true,
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/users/:username/installation"
- },
- listAccountsUserOrOrgOnPlan: {
- method: "GET",
- params: {
- direction: {
- enum: ["asc", "desc"],
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- plan_id: {
- required: true,
- type: "integer"
- },
- sort: {
- enum: ["created", "updated"],
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/marketplace_listing/plans/:plan_id/accounts"
- },
- listAccountsUserOrOrgOnPlanStubbed: {
- method: "GET",
- params: {
- direction: {
- enum: ["asc", "desc"],
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- plan_id: {
- required: true,
- type: "integer"
- },
- sort: {
- enum: ["created", "updated"],
- type: "string"
+ 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);
+ }
}
- },
- url: "/marketplace_listing/stubbed/plans/:plan_id/accounts"
- },
- listInstallationReposForAuthenticatedUser: {
- headers: {
- accept: "application/vnd.github.machine-man-preview+json"
- },
- method: "GET",
- params: {
- installation_id: {
- required: true,
- type: "integer"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/user/installations/:installation_id/repositories"
- },
- listInstallations: {
- headers: {
- accept: "application/vnd.github.machine-man-preview+json"
- },
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/app/installations"
- },
- listInstallationsForAuthenticatedUser: {
- headers: {
- accept: "application/vnd.github.machine-man-preview+json"
- },
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ 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);
+ }
}
- },
- url: "/user/installations"
- },
- listMarketplacePurchasesForAuthenticatedUser: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ 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);
+ }
}
- },
- url: "/user/marketplace_purchases"
- },
- listMarketplacePurchasesForAuthenticatedUserStubbed: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ 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);
+ }
}
- },
- url: "/user/marketplace_purchases/stubbed"
- },
- listPlans: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ }
+ compute_alpha.Resource$Regioninplacesnapshots = Resource$Regioninplacesnapshots;
+ class Resource$Regioninstancegroupmanagers {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/marketplace_listing/plans"
- },
- listPlansStubbed: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ 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);
+ }
}
- },
- url: "/marketplace_listing/stubbed/plans"
- },
- listRepos: {
- headers: {
- accept: "application/vnd.github.machine-man-preview+json"
- },
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ 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);
+ }
}
- },
- url: "/installation/repositories"
- },
- removeRepoFromInstallation: {
- headers: {
- accept: "application/vnd.github.machine-man-preview+json"
- },
- method: "DELETE",
- params: {
- installation_id: {
- required: true,
- type: "integer"
- },
- repository_id: {
- required: true,
- type: "integer"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/user/installations/:installation_id/repositories/:repository_id"
- },
- resetAuthorization: {
- deprecated: "octokit.apps.resetAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization",
- method: "POST",
- params: {
- access_token: {
- required: true,
- type: "string"
- },
- client_id: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/applications/:client_id/tokens/:access_token"
- },
- resetToken: {
- headers: {
- accept: "application/vnd.github.doctor-strange-preview+json"
- },
- method: "PATCH",
- params: {
- access_token: {
- type: "string"
- },
- client_id: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/applications/:client_id/token"
- },
- revokeAuthorizationForApplication: {
- deprecated: "octokit.apps.revokeAuthorizationForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application",
- method: "DELETE",
- params: {
- access_token: {
- required: true,
- type: "string"
- },
- client_id: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/applications/:client_id/tokens/:access_token"
- },
- revokeGrantForApplication: {
- deprecated: "octokit.apps.revokeGrantForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application",
- method: "DELETE",
- params: {
- access_token: {
- required: true,
- type: "string"
- },
- client_id: {
- required: true,
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/applications/:client_id/grants/:access_token"
- },
- revokeInstallationToken: {
- headers: {
- accept: "application/vnd.github.gambit-preview+json"
- },
- method: "DELETE",
- params: {},
- url: "/installation/token"
- }
- },
- checks: {
- create: {
- headers: {
- accept: "application/vnd.github.antiope-preview+json"
- },
- method: "POST",
- params: {
- actions: {
- type: "object[]"
- },
- "actions[].description": {
- required: true,
- type: "string"
- },
- "actions[].identifier": {
- required: true,
- type: "string"
- },
- "actions[].label": {
- required: true,
- type: "string"
- },
- completed_at: {
- type: "string"
- },
- conclusion: {
- enum: ["success", "failure", "neutral", "cancelled", "timed_out", "action_required"],
- type: "string"
- },
- details_url: {
- type: "string"
- },
- external_id: {
- type: "string"
- },
- head_sha: {
- required: true,
- type: "string"
- },
- name: {
- required: true,
- type: "string"
- },
- output: {
- type: "object"
- },
- "output.annotations": {
- type: "object[]"
- },
- "output.annotations[].annotation_level": {
- enum: ["notice", "warning", "failure"],
- required: true,
- type: "string"
- },
- "output.annotations[].end_column": {
- type: "integer"
- },
- "output.annotations[].end_line": {
- required: true,
- type: "integer"
- },
- "output.annotations[].message": {
- required: true,
- type: "string"
- },
- "output.annotations[].path": {
- required: true,
- type: "string"
- },
- "output.annotations[].raw_details": {
- type: "string"
- },
- "output.annotations[].start_column": {
- type: "integer"
- },
- "output.annotations[].start_line": {
- required: true,
- type: "integer"
- },
- "output.annotations[].title": {
- type: "string"
- },
- "output.images": {
- type: "object[]"
- },
- "output.images[].alt": {
- required: true,
- type: "string"
- },
- "output.images[].caption": {
- type: "string"
- },
- "output.images[].image_url": {
- required: true,
- type: "string"
- },
- "output.summary": {
- required: true,
- type: "string"
- },
- "output.text": {
- type: "string"
- },
- "output.title": {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- started_at: {
- type: "string"
- },
- status: {
- enum: ["queued", "in_progress", "completed"],
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/check-runs"
- },
- createSuite: {
- headers: {
- accept: "application/vnd.github.antiope-preview+json"
- },
- method: "POST",
- params: {
- head_sha: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/check-suites"
- },
- get: {
- headers: {
- accept: "application/vnd.github.antiope-preview+json"
- },
- method: "GET",
- params: {
- check_run_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/check-runs/:check_run_id"
- },
- getSuite: {
- headers: {
- accept: "application/vnd.github.antiope-preview+json"
- },
- method: "GET",
- params: {
- check_suite_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/check-suites/:check_suite_id"
- },
- listAnnotations: {
- headers: {
- accept: "application/vnd.github.antiope-preview+json"
- },
- method: "GET",
- params: {
- check_run_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/check-runs/:check_run_id/annotations"
- },
- listForRef: {
- headers: {
- accept: "application/vnd.github.antiope-preview+json"
- },
- method: "GET",
- params: {
- check_name: {
- type: "string"
- },
- filter: {
- enum: ["latest", "all"],
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- ref: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- status: {
- enum: ["queued", "in_progress", "completed"],
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/commits/:ref/check-runs"
- },
- listForSuite: {
- headers: {
- accept: "application/vnd.github.antiope-preview+json"
- },
- method: "GET",
- params: {
- check_name: {
- type: "string"
- },
- check_suite_id: {
- required: true,
- type: "integer"
- },
- filter: {
- enum: ["latest", "all"],
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- status: {
- enum: ["queued", "in_progress", "completed"],
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/check-suites/:check_suite_id/check-runs"
- },
- listSuitesForRef: {
- headers: {
- accept: "application/vnd.github.antiope-preview+json"
- },
- method: "GET",
- params: {
- app_id: {
- type: "integer"
- },
- check_name: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- ref: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/commits/:ref/check-suites"
- },
- rerequestSuite: {
- headers: {
- accept: "application/vnd.github.antiope-preview+json"
- },
- method: "POST",
- params: {
- check_suite_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/check-suites/:check_suite_id/rerequest"
- },
- setSuitesPreferences: {
- headers: {
- accept: "application/vnd.github.antiope-preview+json"
- },
- method: "PATCH",
- params: {
- auto_trigger_checks: {
- type: "object[]"
- },
- "auto_trigger_checks[].app_id": {
- required: true,
- type: "integer"
- },
- "auto_trigger_checks[].setting": {
- required: true,
- type: "boolean"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/check-suites/preferences"
- },
- update: {
- headers: {
- accept: "application/vnd.github.antiope-preview+json"
- },
- method: "PATCH",
- params: {
- actions: {
- type: "object[]"
- },
- "actions[].description": {
- required: true,
- type: "string"
- },
- "actions[].identifier": {
- required: true,
- type: "string"
- },
- "actions[].label": {
- required: true,
- type: "string"
- },
- check_run_id: {
- required: true,
- type: "integer"
- },
- completed_at: {
- type: "string"
- },
- conclusion: {
- enum: ["success", "failure", "neutral", "cancelled", "timed_out", "action_required"],
- type: "string"
- },
- details_url: {
- type: "string"
- },
- external_id: {
- type: "string"
- },
- name: {
- type: "string"
- },
- output: {
- type: "object"
- },
- "output.annotations": {
- type: "object[]"
- },
- "output.annotations[].annotation_level": {
- enum: ["notice", "warning", "failure"],
- required: true,
- type: "string"
- },
- "output.annotations[].end_column": {
- type: "integer"
- },
- "output.annotations[].end_line": {
- required: true,
- type: "integer"
- },
- "output.annotations[].message": {
- required: true,
- type: "string"
- },
- "output.annotations[].path": {
- required: true,
- type: "string"
- },
- "output.annotations[].raw_details": {
- type: "string"
- },
- "output.annotations[].start_column": {
- type: "integer"
- },
- "output.annotations[].start_line": {
- required: true,
- type: "integer"
- },
- "output.annotations[].title": {
- type: "string"
- },
- "output.images": {
- type: "object[]"
- },
- "output.images[].alt": {
- required: true,
- type: "string"
- },
- "output.images[].caption": {
- type: "string"
- },
- "output.images[].image_url": {
- required: true,
- type: "string"
- },
- "output.summary": {
- required: true,
- type: "string"
- },
- "output.text": {
- type: "string"
- },
- "output.title": {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- started_at: {
- type: "string"
- },
- status: {
- enum: ["queued", "in_progress", "completed"],
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/check-runs/:check_run_id"
- }
- },
- codesOfConduct: {
- getConductCode: {
- headers: {
- accept: "application/vnd.github.scarlet-witch-preview+json"
- },
- method: "GET",
- params: {
- key: {
- required: true,
- type: "string"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/codes_of_conduct/:key"
- },
- getForRepo: {
- headers: {
- accept: "application/vnd.github.scarlet-witch-preview+json"
- },
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/community/code_of_conduct"
- },
- listConductCodes: {
- headers: {
- accept: "application/vnd.github.scarlet-witch-preview+json"
- },
- method: "GET",
- params: {},
- url: "/codes_of_conduct"
- }
- },
- emojis: {
- get: {
- method: "GET",
- params: {},
- url: "/emojis"
}
- },
- gists: {
- checkIsStarred: {
- method: "GET",
- params: {
- gist_id: {
- required: true,
- type: "string"
+ compute_alpha.Resource$Regioninstancegroupmanagers = Resource$Regioninstancegroupmanagers;
+ class Resource$Regioninstancegroups {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/gists/:gist_id/star"
- },
- create: {
- method: "POST",
- params: {
- description: {
- type: "string"
- },
- files: {
- required: true,
- type: "object"
- },
- "files.content": {
- type: "string"
- },
- public: {
- type: "boolean"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/gists"
- },
- createComment: {
- method: "POST",
- params: {
- body: {
- required: true,
- type: "string"
- },
- gist_id: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/gists/:gist_id/comments"
- },
- delete: {
- method: "DELETE",
- params: {
- gist_id: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/gists/:gist_id"
- },
- deleteComment: {
- method: "DELETE",
- params: {
- comment_id: {
- required: true,
- type: "integer"
- },
- gist_id: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/gists/:gist_id/comments/:comment_id"
- },
- fork: {
- method: "POST",
- params: {
- gist_id: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/gists/:gist_id/forks"
- },
- get: {
- method: "GET",
- params: {
- gist_id: {
- required: true,
- type: "string"
+ }
+ compute_alpha.Resource$Regioninstancegroups = Resource$Regioninstancegroups;
+ class Resource$Regioninstances {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/gists/:gist_id"
- },
- getComment: {
- method: "GET",
- params: {
- comment_id: {
- required: true,
- type: "integer"
- },
- gist_id: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/gists/:gist_id/comments/:comment_id"
- },
- getRevision: {
- method: "GET",
- params: {
- gist_id: {
- required: true,
- type: "string"
- },
- sha: {
- required: true,
- type: "string"
+ }
+ compute_alpha.Resource$Regioninstances = Resource$Regioninstances;
+ class Resource$Regionnetworkendpointgroups {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/gists/:gist_id/:sha"
- },
- list: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- since: {
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/gists"
- },
- listComments: {
- method: "GET",
- params: {
- gist_id: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/gists/:gist_id/comments"
- },
- listCommits: {
- method: "GET",
- params: {
- gist_id: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/gists/:gist_id/commits"
- },
- listForks: {
- method: "GET",
- params: {
- gist_id: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/gists/:gist_id/forks"
- },
- listPublic: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- since: {
- type: "string"
+ }
+ compute_alpha.Resource$Regionnetworkendpointgroups = Resource$Regionnetworkendpointgroups;
+ class Resource$Regionnotificationendpoints {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/gists/public"
- },
- listPublicForUser: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- since: {
- type: "string"
- },
- username: {
- required: true,
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/users/:username/gists"
- },
- listStarred: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- since: {
- type: "string"
+ }
+ compute_alpha.Resource$Regionnotificationendpoints = Resource$Regionnotificationendpoints;
+ class Resource$Regionoperations {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/gists/starred"
- },
- star: {
- method: "PUT",
- params: {
- gist_id: {
- required: true,
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/gists/:gist_id/star"
- },
- unstar: {
- method: "DELETE",
- params: {
- gist_id: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/gists/:gist_id/star"
- },
- update: {
- method: "PATCH",
- params: {
- description: {
- type: "string"
- },
- files: {
- type: "object"
- },
- "files.content": {
- type: "string"
- },
- "files.filename": {
- type: "string"
- },
- gist_id: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/gists/:gist_id"
- },
- updateComment: {
- method: "PATCH",
- params: {
- body: {
- required: true,
- type: "string"
- },
- comment_id: {
- required: true,
- type: "integer"
- },
- gist_id: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/gists/:gist_id/comments/:comment_id"
}
- },
- git: {
- createBlob: {
- method: "POST",
- params: {
- content: {
- required: true,
- type: "string"
- },
- encoding: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ compute_alpha.Resource$Regionoperations = Resource$Regionoperations;
+ class Resource$Regions {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/git/blobs"
- },
- createCommit: {
- method: "POST",
- params: {
- author: {
- type: "object"
- },
- "author.date": {
- type: "string"
- },
- "author.email": {
- type: "string"
- },
- "author.name": {
- type: "string"
- },
- committer: {
- type: "object"
- },
- "committer.date": {
- type: "string"
- },
- "committer.email": {
- type: "string"
- },
- "committer.name": {
- type: "string"
- },
- message: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- parents: {
- required: true,
- type: "string[]"
- },
- repo: {
- required: true,
- type: "string"
- },
- signature: {
- type: "string"
- },
- tree: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/git/commits"
- },
- createRef: {
- method: "POST",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- ref: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- sha: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/git/refs"
- },
- createTag: {
- method: "POST",
- params: {
- message: {
- required: true,
- type: "string"
- },
- object: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- tag: {
- required: true,
- type: "string"
- },
- tagger: {
- type: "object"
- },
- "tagger.date": {
- type: "string"
- },
- "tagger.email": {
- type: "string"
- },
- "tagger.name": {
- type: "string"
- },
- type: {
- enum: ["commit", "tree", "blob"],
- required: true,
- type: "string"
+ }
+ compute_alpha.Resource$Regions = Resource$Regions;
+ class Resource$Regionsslcertificates {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/git/tags"
- },
- createTree: {
- method: "POST",
- params: {
- base_tree: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- tree: {
- required: true,
- type: "object[]"
- },
- "tree[].content": {
- type: "string"
- },
- "tree[].mode": {
- enum: ["100644", "100755", "040000", "160000", "120000"],
- type: "string"
- },
- "tree[].path": {
- type: "string"
- },
- "tree[].sha": {
- allowNull: true,
- type: "string"
- },
- "tree[].type": {
- enum: ["blob", "tree", "commit"],
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/git/trees"
- },
- deleteRef: {
- method: "DELETE",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- ref: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/git/refs/:ref"
- },
- getBlob: {
- method: "GET",
- params: {
- file_sha: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/git/blobs/:file_sha"
- },
- getCommit: {
- method: "GET",
- params: {
- commit_sha: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/git/commits/:commit_sha"
- },
- getRef: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- ref: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/git/ref/:ref"
- },
- getTag: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- tag_sha: {
- required: true,
- type: "string"
+ }
+ compute_alpha.Resource$Regionsslcertificates = Resource$Regionsslcertificates;
+ class Resource$Regiontargethttpproxies {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/git/tags/:tag_sha"
- },
- getTree: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- recursive: {
- enum: ["1"],
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- tree_sha: {
- required: true,
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/git/trees/:tree_sha"
- },
- listMatchingRefs: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- ref: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/git/matching-refs/:ref"
- },
- listRefs: {
- method: "GET",
- params: {
- namespace: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/git/refs/:namespace"
- },
- updateRef: {
- method: "PATCH",
- params: {
- force: {
- type: "boolean"
- },
- owner: {
- required: true,
- type: "string"
- },
- ref: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- sha: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/git/refs/:ref"
- }
- },
- gitignore: {
- getTemplate: {
- method: "GET",
- params: {
- name: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/gitignore/templates/:name"
- },
- listTemplates: {
- method: "GET",
- params: {},
- url: "/gitignore/templates"
- }
- },
- interactions: {
- addOrUpdateRestrictionsForOrg: {
- headers: {
- accept: "application/vnd.github.sombra-preview+json"
- },
- method: "PUT",
- params: {
- limit: {
- enum: ["existing_users", "contributors_only", "collaborators_only"],
- required: true,
- type: "string"
- },
- org: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/orgs/:org/interaction-limits"
- },
- addOrUpdateRestrictionsForRepo: {
- headers: {
- accept: "application/vnd.github.sombra-preview+json"
- },
- method: "PUT",
- params: {
- limit: {
- enum: ["existing_users", "contributors_only", "collaborators_only"],
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ compute_alpha.Resource$Regiontargethttpproxies = Resource$Regiontargethttpproxies;
+ class Resource$Regiontargethttpsproxies {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/interaction-limits"
- },
- getRestrictionsForOrg: {
- headers: {
- accept: "application/vnd.github.sombra-preview+json"
- },
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/orgs/:org/interaction-limits"
- },
- getRestrictionsForRepo: {
- headers: {
- accept: "application/vnd.github.sombra-preview+json"
- },
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/interaction-limits"
- },
- removeRestrictionsForOrg: {
- headers: {
- accept: "application/vnd.github.sombra-preview+json"
- },
- method: "DELETE",
- params: {
- org: {
- required: true,
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/orgs/:org/interaction-limits"
- },
- removeRestrictionsForRepo: {
- headers: {
- accept: "application/vnd.github.sombra-preview+json"
- },
- method: "DELETE",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/interaction-limits"
- }
- },
- issues: {
- addAssignees: {
- method: "POST",
- params: {
- assignees: {
- type: "string[]"
- },
- issue_number: {
- required: true,
- type: "integer"
- },
- number: {
- alias: "issue_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/issues/:issue_number/assignees"
- },
- addLabels: {
- method: "POST",
- params: {
- issue_number: {
- required: true,
- type: "integer"
- },
- labels: {
- required: true,
- type: "string[]"
- },
- number: {
- alias: "issue_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/issues/:issue_number/labels"
- },
- checkAssignee: {
- method: "GET",
- params: {
- assignee: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/assignees/:assignee"
- },
- create: {
- method: "POST",
- params: {
- assignee: {
- type: "string"
- },
- assignees: {
- type: "string[]"
- },
- body: {
- type: "string"
- },
- labels: {
- type: "string[]"
- },
- milestone: {
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- title: {
- required: true,
- type: "string"
+ }
+ compute_alpha.Resource$Regiontargethttpsproxies = Resource$Regiontargethttpsproxies;
+ class Resource$Regionurlmaps {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/issues"
- },
- createComment: {
- method: "POST",
- params: {
- body: {
- required: true,
- type: "string"
- },
- issue_number: {
- required: true,
- type: "integer"
- },
- number: {
- alias: "issue_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/issues/:issue_number/comments"
- },
- createLabel: {
- method: "POST",
- params: {
- color: {
- required: true,
- type: "string"
- },
- description: {
- type: "string"
- },
- name: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/labels"
- },
- createMilestone: {
- method: "POST",
- params: {
- description: {
- type: "string"
- },
- due_on: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- state: {
- enum: ["open", "closed"],
- type: "string"
- },
- title: {
- required: true,
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/milestones"
- },
- deleteComment: {
- method: "DELETE",
- params: {
- comment_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/issues/comments/:comment_id"
- },
- deleteLabel: {
- method: "DELETE",
- params: {
- name: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/labels/:name"
- },
- deleteMilestone: {
- method: "DELETE",
- params: {
- milestone_number: {
- required: true,
- type: "integer"
- },
- number: {
- alias: "milestone_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/milestones/:milestone_number"
- },
- get: {
- method: "GET",
- params: {
- issue_number: {
- required: true,
- type: "integer"
- },
- number: {
- alias: "issue_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/issues/:issue_number"
- },
- getComment: {
- method: "GET",
- params: {
- comment_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/issues/comments/:comment_id"
- },
- getEvent: {
- method: "GET",
- params: {
- event_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/issues/events/:event_id"
- },
- getLabel: {
- method: "GET",
- params: {
- name: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ compute_alpha.Resource$Regionurlmaps = Resource$Regionurlmaps;
+ class Resource$Reservations {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/labels/:name"
- },
- getMilestone: {
- method: "GET",
- params: {
- milestone_number: {
- required: true,
- type: "integer"
- },
- number: {
- alias: "milestone_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/milestones/:milestone_number"
- },
- list: {
- method: "GET",
- params: {
- direction: {
- enum: ["asc", "desc"],
- type: "string"
- },
- filter: {
- enum: ["assigned", "created", "mentioned", "subscribed", "all"],
- type: "string"
- },
- labels: {
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- since: {
- type: "string"
- },
- sort: {
- enum: ["created", "updated", "comments"],
- type: "string"
- },
- state: {
- enum: ["open", "closed", "all"],
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/issues"
- },
- listAssignees: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/assignees"
- },
- listComments: {
- method: "GET",
- params: {
- issue_number: {
- required: true,
- type: "integer"
- },
- number: {
- alias: "issue_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- since: {
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/issues/:issue_number/comments"
- },
- listCommentsForRepo: {
- method: "GET",
- params: {
- direction: {
- enum: ["asc", "desc"],
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- since: {
- type: "string"
- },
- sort: {
- enum: ["created", "updated"],
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/issues/comments"
- },
- listEvents: {
- method: "GET",
- params: {
- issue_number: {
- required: true,
- type: "integer"
- },
- number: {
- alias: "issue_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/issues/:issue_number/events"
- },
- listEventsForRepo: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/issues/events"
- },
- listEventsForTimeline: {
- headers: {
- accept: "application/vnd.github.mockingbird-preview+json"
- },
- method: "GET",
- params: {
- issue_number: {
- required: true,
- type: "integer"
- },
- number: {
- alias: "issue_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/issues/:issue_number/timeline"
- },
- listForAuthenticatedUser: {
- method: "GET",
- params: {
- direction: {
- enum: ["asc", "desc"],
- type: "string"
- },
- filter: {
- enum: ["assigned", "created", "mentioned", "subscribed", "all"],
- type: "string"
- },
- labels: {
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- since: {
- type: "string"
- },
- sort: {
- enum: ["created", "updated", "comments"],
- type: "string"
- },
- state: {
- enum: ["open", "closed", "all"],
- type: "string"
+ 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);
+ }
}
- },
- url: "/user/issues"
- },
- listForOrg: {
- method: "GET",
- params: {
- direction: {
- enum: ["asc", "desc"],
- type: "string"
- },
- filter: {
- enum: ["assigned", "created", "mentioned", "subscribed", "all"],
- type: "string"
- },
- labels: {
- type: "string"
- },
- org: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- since: {
- type: "string"
- },
- sort: {
- enum: ["created", "updated", "comments"],
- type: "string"
- },
- state: {
- enum: ["open", "closed", "all"],
- type: "string"
+ }
+ compute_alpha.Resource$Reservations = Resource$Reservations;
+ class Resource$Resourcepolicies {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/orgs/:org/issues"
- },
- listForRepo: {
- method: "GET",
- params: {
- assignee: {
- type: "string"
- },
- creator: {
- type: "string"
- },
- direction: {
- enum: ["asc", "desc"],
- type: "string"
- },
- labels: {
- type: "string"
- },
- mentioned: {
- type: "string"
- },
- milestone: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- since: {
- type: "string"
- },
- sort: {
- enum: ["created", "updated", "comments"],
- type: "string"
- },
- state: {
- enum: ["open", "closed", "all"],
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/issues"
- },
- listLabelsForMilestone: {
- method: "GET",
- params: {
- milestone_number: {
- required: true,
- type: "integer"
- },
- number: {
- alias: "milestone_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/milestones/:milestone_number/labels"
- },
- listLabelsForRepo: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/labels"
- },
- listLabelsOnIssue: {
- method: "GET",
- params: {
- issue_number: {
- required: true,
- type: "integer"
- },
- number: {
- alias: "issue_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/issues/:issue_number/labels"
- },
- listMilestonesForRepo: {
- method: "GET",
- params: {
- direction: {
- enum: ["asc", "desc"],
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- sort: {
- enum: ["due_on", "completeness"],
- type: "string"
- },
- state: {
- enum: ["open", "closed", "all"],
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/milestones"
- },
- lock: {
- method: "PUT",
- params: {
- issue_number: {
- required: true,
- type: "integer"
- },
- lock_reason: {
- enum: ["off-topic", "too heated", "resolved", "spam"],
- type: "string"
- },
- number: {
- alias: "issue_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/issues/:issue_number/lock"
- },
- removeAssignees: {
- method: "DELETE",
- params: {
- assignees: {
- type: "string[]"
- },
- issue_number: {
- required: true,
- type: "integer"
- },
- number: {
- alias: "issue_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ compute_alpha.Resource$Resourcepolicies = Resource$Resourcepolicies;
+ class Resource$Routers {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/issues/:issue_number/assignees"
- },
- removeLabel: {
- method: "DELETE",
- params: {
- issue_number: {
- required: true,
- type: "integer"
- },
- name: {
- required: true,
- type: "string"
- },
- number: {
- alias: "issue_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/issues/:issue_number/labels/:name"
- },
- removeLabels: {
- method: "DELETE",
- params: {
- issue_number: {
- required: true,
- type: "integer"
- },
- number: {
- alias: "issue_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/issues/:issue_number/labels"
- },
- replaceLabels: {
- method: "PUT",
- params: {
- issue_number: {
- required: true,
- type: "integer"
- },
- labels: {
- type: "string[]"
- },
- number: {
- alias: "issue_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/issues/:issue_number/labels"
- },
- unlock: {
- method: "DELETE",
- params: {
- issue_number: {
- required: true,
- type: "integer"
- },
- number: {
- alias: "issue_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/issues/:issue_number/lock"
- },
- update: {
- method: "PATCH",
- params: {
- assignee: {
- type: "string"
- },
- assignees: {
- type: "string[]"
- },
- body: {
- type: "string"
- },
- issue_number: {
- required: true,
- type: "integer"
- },
- labels: {
- type: "string[]"
- },
- milestone: {
- allowNull: true,
- type: "integer"
- },
- number: {
- alias: "issue_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- state: {
- enum: ["open", "closed"],
- type: "string"
- },
- title: {
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/issues/:issue_number"
- },
- updateComment: {
- method: "PATCH",
- params: {
- body: {
- required: true,
- type: "string"
- },
- comment_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/issues/comments/:comment_id"
- },
- updateLabel: {
- method: "PATCH",
- params: {
- color: {
- type: "string"
- },
- current_name: {
- required: true,
- type: "string"
- },
- description: {
- type: "string"
- },
- name: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/labels/:current_name"
- },
- updateMilestone: {
- method: "PATCH",
- params: {
- description: {
- type: "string"
- },
- due_on: {
- type: "string"
- },
- milestone_number: {
- required: true,
- type: "integer"
- },
- number: {
- alias: "milestone_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- state: {
- enum: ["open", "closed"],
- type: "string"
- },
- title: {
- type: "string"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/milestones/:milestone_number"
}
- },
- licenses: {
- get: {
- method: "GET",
- params: {
- license: {
- required: true,
- type: "string"
+ compute_alpha.Resource$Routers = Resource$Routers;
+ class Resource$Routes {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/licenses/:license"
- },
- getForRepo: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/license"
- },
- list: {
- deprecated: "octokit.licenses.list() has been renamed to octokit.licenses.listCommonlyUsed() (2019-03-05)",
- method: "GET",
- params: {},
- url: "/licenses"
- },
- listCommonlyUsed: {
- method: "GET",
- params: {},
- url: "/licenses"
}
- },
- markdown: {
- render: {
- method: "POST",
- params: {
- context: {
- type: "string"
- },
- mode: {
- enum: ["markdown", "gfm"],
- type: "string"
- },
- text: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/markdown"
- },
- renderRaw: {
- headers: {
- "content-type": "text/plain; charset=utf-8"
- },
- method: "POST",
- params: {
- data: {
- mapTo: "data",
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/markdown/raw"
- }
- },
- meta: {
- get: {
- method: "GET",
- params: {},
- url: "/meta"
- }
- },
- migrations: {
- cancelImport: {
- method: "DELETE",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/import"
- },
- deleteArchiveForAuthenticatedUser: {
- headers: {
- accept: "application/vnd.github.wyandotte-preview+json"
- },
- method: "DELETE",
- params: {
- migration_id: {
- required: true,
- type: "integer"
+ 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);
+ }
}
- },
- url: "/user/migrations/:migration_id/archive"
- },
- deleteArchiveForOrg: {
- headers: {
- accept: "application/vnd.github.wyandotte-preview+json"
- },
- method: "DELETE",
- params: {
- migration_id: {
- required: true,
- type: "integer"
- },
- org: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/orgs/:org/migrations/:migration_id/archive"
- },
- downloadArchiveForOrg: {
- headers: {
- accept: "application/vnd.github.wyandotte-preview+json"
- },
- method: "GET",
- params: {
- migration_id: {
- required: true,
- type: "integer"
- },
- org: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/orgs/:org/migrations/:migration_id/archive"
- },
- getArchiveForAuthenticatedUser: {
- headers: {
- accept: "application/vnd.github.wyandotte-preview+json"
- },
- method: "GET",
- params: {
- migration_id: {
- required: true,
- type: "integer"
+ 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);
+ }
}
- },
- url: "/user/migrations/:migration_id/archive"
- },
- getArchiveForOrg: {
- deprecated: "octokit.migrations.getArchiveForOrg() has been renamed to octokit.migrations.downloadArchiveForOrg() (2020-01-27)",
- headers: {
- accept: "application/vnd.github.wyandotte-preview+json"
- },
- method: "GET",
- params: {
- migration_id: {
- required: true,
- type: "integer"
- },
- org: {
- required: true,
- type: "string"
+ }
+ compute_alpha.Resource$Securitypolicies = Resource$Securitypolicies;
+ class Resource$Serviceattachments {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/orgs/:org/migrations/:migration_id/archive"
- },
- getCommitAuthors: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- since: {
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/import/authors"
- },
- getImportProgress: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/import"
- },
- getLargeFiles: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/import/large_files"
- },
- getStatusForAuthenticatedUser: {
- headers: {
- accept: "application/vnd.github.wyandotte-preview+json"
- },
- method: "GET",
- params: {
- migration_id: {
- required: true,
- type: "integer"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/user/migrations/:migration_id"
- },
- getStatusForOrg: {
- headers: {
- accept: "application/vnd.github.wyandotte-preview+json"
- },
- method: "GET",
- params: {
- migration_id: {
- required: true,
- type: "integer"
- },
- org: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/orgs/:org/migrations/:migration_id"
- },
- listForAuthenticatedUser: {
- headers: {
- accept: "application/vnd.github.wyandotte-preview+json"
- },
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ 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);
+ }
}
- },
- url: "/user/migrations"
- },
- listForOrg: {
- headers: {
- accept: "application/vnd.github.wyandotte-preview+json"
- },
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ 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);
+ }
}
- },
- url: "/orgs/:org/migrations"
- },
- listReposForOrg: {
- headers: {
- accept: "application/vnd.github.wyandotte-preview+json"
- },
- method: "GET",
- params: {
- migration_id: {
- required: true,
- type: "integer"
- },
- org: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ }
+ compute_alpha.Resource$Serviceattachments = Resource$Serviceattachments;
+ class Resource$Snapshots {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/orgs/:org/migrations/:migration_id/repositories"
- },
- listReposForUser: {
- headers: {
- accept: "application/vnd.github.wyandotte-preview+json"
- },
- method: "GET",
- params: {
- migration_id: {
- required: true,
- type: "integer"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/user/:migration_id/repositories"
- },
- mapCommitAuthor: {
- method: "PATCH",
- params: {
- author_id: {
- required: true,
- type: "integer"
- },
- email: {
- type: "string"
- },
- name: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/import/authors/:author_id"
- },
- setLfsPreference: {
- method: "PATCH",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- use_lfs: {
- enum: ["opt_in", "opt_out"],
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/import/lfs"
- },
- startForAuthenticatedUser: {
- method: "POST",
- params: {
- exclude_attachments: {
- type: "boolean"
- },
- lock_repositories: {
- type: "boolean"
- },
- repositories: {
- required: true,
- type: "string[]"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/user/migrations"
- },
- startForOrg: {
- method: "POST",
- params: {
- exclude_attachments: {
- type: "boolean"
- },
- lock_repositories: {
- type: "boolean"
- },
- org: {
- required: true,
- type: "string"
- },
- repositories: {
- required: true,
- type: "string[]"
+ 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);
+ }
}
- },
- url: "/orgs/:org/migrations"
- },
- startImport: {
- method: "PUT",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- tfvc_project: {
- type: "string"
- },
- vcs: {
- enum: ["subversion", "git", "mercurial", "tfvc"],
- type: "string"
- },
- vcs_password: {
- type: "string"
- },
- vcs_url: {
- required: true,
- type: "string"
- },
- vcs_username: {
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/import"
- },
- unlockRepoForAuthenticatedUser: {
- headers: {
- accept: "application/vnd.github.wyandotte-preview+json"
- },
- method: "DELETE",
- params: {
- migration_id: {
- required: true,
- type: "integer"
- },
- repo_name: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/user/migrations/:migration_id/repos/:repo_name/lock"
- },
- unlockRepoForOrg: {
- headers: {
- accept: "application/vnd.github.wyandotte-preview+json"
- },
- method: "DELETE",
- params: {
- migration_id: {
- required: true,
- type: "integer"
- },
- org: {
- required: true,
- type: "string"
- },
- repo_name: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/orgs/:org/migrations/:migration_id/repos/:repo_name/lock"
- },
- updateImport: {
- method: "PATCH",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- vcs_password: {
- type: "string"
- },
- vcs_username: {
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/import"
}
- },
- oauthAuthorizations: {
- checkAuthorization: {
- deprecated: "octokit.oauthAuthorizations.checkAuthorization() has been renamed to octokit.apps.checkAuthorization() (2019-11-05)",
- method: "GET",
- params: {
- access_token: {
- required: true,
- type: "string"
- },
- client_id: {
- required: true,
- type: "string"
+ compute_alpha.Resource$Sslcertificates = Resource$Sslcertificates;
+ class Resource$Sslpolicies {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/applications/:client_id/tokens/:access_token"
- },
- createAuthorization: {
- deprecated: "octokit.oauthAuthorizations.createAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization",
- method: "POST",
- params: {
- client_id: {
- type: "string"
- },
- client_secret: {
- type: "string"
- },
- fingerprint: {
- type: "string"
- },
- note: {
- required: true,
- type: "string"
- },
- note_url: {
- type: "string"
- },
- scopes: {
- type: "string[]"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/authorizations"
- },
- deleteAuthorization: {
- deprecated: "octokit.oauthAuthorizations.deleteAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization",
- method: "DELETE",
- params: {
- authorization_id: {
- required: true,
- type: "integer"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/authorizations/:authorization_id"
- },
- deleteGrant: {
- deprecated: "octokit.oauthAuthorizations.deleteGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant",
- method: "DELETE",
- params: {
- grant_id: {
- required: true,
- type: "integer"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/applications/grants/:grant_id"
- },
- getAuthorization: {
- deprecated: "octokit.oauthAuthorizations.getAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization",
- method: "GET",
- params: {
- authorization_id: {
- required: true,
- type: "integer"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/authorizations/:authorization_id"
- },
- getGrant: {
- deprecated: "octokit.oauthAuthorizations.getGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant",
- method: "GET",
- params: {
- grant_id: {
- required: true,
- type: "integer"
+ 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);
+ }
}
- },
- url: "/applications/grants/:grant_id"
- },
- getOrCreateAuthorizationForApp: {
- deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForApp() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app",
- method: "PUT",
- params: {
- client_id: {
- required: true,
- type: "string"
- },
- client_secret: {
- required: true,
- type: "string"
- },
- fingerprint: {
- type: "string"
- },
- note: {
- type: "string"
- },
- note_url: {
- type: "string"
- },
- scopes: {
- type: "string[]"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/authorizations/clients/:client_id"
- },
- getOrCreateAuthorizationForAppAndFingerprint: {
- deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint",
- method: "PUT",
- params: {
- client_id: {
- required: true,
- type: "string"
- },
- client_secret: {
- required: true,
- type: "string"
- },
- fingerprint: {
- required: true,
- type: "string"
- },
- note: {
- type: "string"
- },
- note_url: {
- type: "string"
- },
- scopes: {
- type: "string[]"
+ 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);
+ }
}
- },
- url: "/authorizations/clients/:client_id/:fingerprint"
- },
- getOrCreateAuthorizationForAppFingerprint: {
- deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint() has been renamed to octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() (2018-12-27)",
- method: "PUT",
- params: {
- client_id: {
- required: true,
- type: "string"
- },
- client_secret: {
- required: true,
- type: "string"
- },
- fingerprint: {
- required: true,
- type: "string"
- },
- note: {
- type: "string"
- },
- note_url: {
- type: "string"
- },
- scopes: {
- type: "string[]"
+ }
+ compute_alpha.Resource$Sslpolicies = Resource$Sslpolicies;
+ class Resource$Subnetworks {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/authorizations/clients/:client_id/:fingerprint"
- },
- listAuthorizations: {
- deprecated: "octokit.oauthAuthorizations.listAuthorizations() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations",
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ 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);
+ }
}
- },
- url: "/authorizations"
- },
- listGrants: {
- deprecated: "octokit.oauthAuthorizations.listGrants() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-grants",
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/applications/grants"
- },
- resetAuthorization: {
- deprecated: "octokit.oauthAuthorizations.resetAuthorization() has been renamed to octokit.apps.resetAuthorization() (2019-11-05)",
- method: "POST",
- params: {
- access_token: {
- required: true,
- type: "string"
- },
- client_id: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/applications/:client_id/tokens/:access_token"
- },
- revokeAuthorizationForApplication: {
- deprecated: "octokit.oauthAuthorizations.revokeAuthorizationForApplication() has been renamed to octokit.apps.revokeAuthorizationForApplication() (2019-11-05)",
- method: "DELETE",
- params: {
- access_token: {
- required: true,
- type: "string"
- },
- client_id: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/applications/:client_id/tokens/:access_token"
- },
- revokeGrantForApplication: {
- deprecated: "octokit.oauthAuthorizations.revokeGrantForApplication() has been renamed to octokit.apps.revokeGrantForApplication() (2019-11-05)",
- method: "DELETE",
- params: {
- access_token: {
- required: true,
- type: "string"
- },
- client_id: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/applications/:client_id/grants/:access_token"
- },
- updateAuthorization: {
- deprecated: "octokit.oauthAuthorizations.updateAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization",
- method: "PATCH",
- params: {
- add_scopes: {
- type: "string[]"
- },
- authorization_id: {
- required: true,
- type: "integer"
- },
- fingerprint: {
- type: "string"
- },
- note: {
- type: "string"
- },
- note_url: {
- type: "string"
- },
- remove_scopes: {
- type: "string[]"
- },
- scopes: {
- type: "string[]"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/authorizations/:authorization_id"
- }
- },
- orgs: {
- addOrUpdateMembership: {
- method: "PUT",
- params: {
- org: {
- required: true,
- type: "string"
- },
- role: {
- enum: ["admin", "member"],
- type: "string"
- },
- username: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/orgs/:org/memberships/:username"
- },
- blockUser: {
- method: "PUT",
- params: {
- org: {
- required: true,
- type: "string"
- },
- username: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/orgs/:org/blocks/:username"
- },
- checkBlockedUser: {
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
- },
- username: {
- required: true,
- type: "string"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/orgs/:org/blocks/:username"
- },
- checkMembership: {
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
- },
- username: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/orgs/:org/members/:username"
- },
- checkPublicMembership: {
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
- },
- username: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/orgs/:org/public_members/:username"
- },
- concealMembership: {
- method: "DELETE",
- params: {
- org: {
- required: true,
- type: "string"
- },
- username: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/orgs/:org/public_members/:username"
- },
- convertMemberToOutsideCollaborator: {
- method: "PUT",
- params: {
- org: {
- required: true,
- type: "string"
- },
- username: {
- required: true,
- type: "string"
+ }
+ compute_alpha.Resource$Subnetworks = Resource$Subnetworks;
+ class Resource$Targetgrpcproxies {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/orgs/:org/outside_collaborators/:username"
- },
- createHook: {
- method: "POST",
- params: {
- active: {
- type: "boolean"
- },
- config: {
- required: true,
- type: "object"
- },
- "config.content_type": {
- type: "string"
- },
- "config.insecure_ssl": {
- type: "string"
- },
- "config.secret": {
- type: "string"
- },
- "config.url": {
- required: true,
- type: "string"
- },
- events: {
- type: "string[]"
- },
- name: {
- required: true,
- type: "string"
- },
- org: {
- required: true,
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/orgs/:org/hooks"
- },
- createInvitation: {
- method: "POST",
- params: {
- email: {
- type: "string"
- },
- invitee_id: {
- type: "integer"
- },
- org: {
- required: true,
- type: "string"
- },
- role: {
- enum: ["admin", "direct_member", "billing_manager"],
- type: "string"
- },
- team_ids: {
- type: "integer[]"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/orgs/:org/invitations"
- },
- deleteHook: {
- method: "DELETE",
- params: {
- hook_id: {
- required: true,
- type: "integer"
- },
- org: {
- required: true,
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/orgs/:org/hooks/:hook_id"
- },
- get: {
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/orgs/:org"
- },
- getHook: {
- method: "GET",
- params: {
- hook_id: {
- required: true,
- type: "integer"
- },
- org: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/orgs/:org/hooks/:hook_id"
- },
- getMembership: {
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
- },
- username: {
- required: true,
- type: "string"
+ }
+ compute_alpha.Resource$Targetgrpcproxies = Resource$Targetgrpcproxies;
+ class Resource$Targethttpproxies {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/orgs/:org/memberships/:username"
- },
- getMembershipForAuthenticatedUser: {
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/user/memberships/orgs/:org"
- },
- list: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- since: {
- type: "integer"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/organizations"
- },
- listBlockedUsers: {
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/orgs/:org/blocks"
- },
- listForAuthenticatedUser: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/user/orgs"
- },
- listForUser: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- username: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/users/:username/orgs"
- },
- listHooks: {
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ 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);
+ }
}
- },
- url: "/orgs/:org/hooks"
- },
- listInstallations: {
- headers: {
- accept: "application/vnd.github.machine-man-preview+json"
- },
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ 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);
+ }
}
- },
- url: "/orgs/:org/installations"
- },
- listInvitationTeams: {
- method: "GET",
- params: {
- invitation_id: {
- required: true,
- type: "integer"
- },
- org: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ }
+ compute_alpha.Resource$Targethttpproxies = Resource$Targethttpproxies;
+ class Resource$Targethttpsproxies {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/orgs/:org/invitations/:invitation_id/teams"
- },
- listMembers: {
- method: "GET",
- params: {
- filter: {
- enum: ["2fa_disabled", "all"],
- type: "string"
- },
- org: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- role: {
- enum: ["all", "admin", "member"],
- type: "string"
+ 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);
+ }
}
- },
- url: "/orgs/:org/members"
- },
- listMemberships: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- state: {
- enum: ["active", "pending"],
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/user/memberships/orgs"
- },
- listOutsideCollaborators: {
- method: "GET",
- params: {
- filter: {
- enum: ["2fa_disabled", "all"],
- type: "string"
- },
- org: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/orgs/:org/outside_collaborators"
- },
- listPendingInvitations: {
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/orgs/:org/invitations"
- },
- listPublicMembers: {
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/orgs/:org/public_members"
- },
- pingHook: {
- method: "POST",
- params: {
- hook_id: {
- required: true,
- type: "integer"
- },
- org: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/orgs/:org/hooks/:hook_id/pings"
- },
- publicizeMembership: {
- method: "PUT",
- params: {
- org: {
- required: true,
- type: "string"
- },
- username: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/orgs/:org/public_members/:username"
- },
- removeMember: {
- method: "DELETE",
- params: {
- org: {
- required: true,
- type: "string"
- },
- username: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/orgs/:org/members/:username"
- },
- removeMembership: {
- method: "DELETE",
- params: {
- org: {
- required: true,
- type: "string"
- },
- username: {
- required: true,
- type: "string"
+ 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;
}
- },
- url: "/orgs/:org/memberships/:username"
- },
- removeOutsideCollaborator: {
- method: "DELETE",
- params: {
- org: {
- required: true,
- type: "string"
- },
- username: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/orgs/:org/outside_collaborators/:username"
- },
- unblockUser: {
- method: "DELETE",
- params: {
- org: {
- required: true,
- type: "string"
- },
- username: {
- required: true,
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/orgs/:org/blocks/:username"
- },
- update: {
- method: "PATCH",
- params: {
- billing_email: {
- type: "string"
- },
- company: {
- type: "string"
- },
- default_repository_permission: {
- enum: ["read", "write", "admin", "none"],
- type: "string"
- },
- description: {
- type: "string"
- },
- email: {
- type: "string"
- },
- has_organization_projects: {
- type: "boolean"
- },
- has_repository_projects: {
- type: "boolean"
- },
- location: {
- type: "string"
- },
- members_allowed_repository_creation_type: {
- enum: ["all", "private", "none"],
- type: "string"
- },
- members_can_create_internal_repositories: {
- type: "boolean"
- },
- members_can_create_private_repositories: {
- type: "boolean"
- },
- members_can_create_public_repositories: {
- type: "boolean"
- },
- members_can_create_repositories: {
- type: "boolean"
- },
- name: {
- type: "string"
- },
- org: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/orgs/:org"
- },
- updateHook: {
- method: "PATCH",
- params: {
- active: {
- type: "boolean"
- },
- config: {
- type: "object"
- },
- "config.content_type": {
- type: "string"
- },
- "config.insecure_ssl": {
- type: "string"
- },
- "config.secret": {
- type: "string"
- },
- "config.url": {
- required: true,
- type: "string"
- },
- events: {
- type: "string[]"
- },
- hook_id: {
- required: true,
- type: "integer"
- },
- org: {
- required: true,
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/orgs/:org/hooks/:hook_id"
- },
- updateMembership: {
- method: "PATCH",
- params: {
- org: {
- required: true,
- type: "string"
- },
- state: {
- enum: ["active"],
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/user/memberships/orgs/:org"
}
- },
- projects: {
- addCollaborator: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "PUT",
- params: {
- permission: {
- enum: ["read", "write", "admin"],
- type: "string"
- },
- project_id: {
- required: true,
- type: "integer"
- },
- username: {
- required: true,
- type: "string"
+ compute_alpha.Resource$Targetinstances = Resource$Targetinstances;
+ class Resource$Targetpools {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/projects/:project_id/collaborators/:username"
- },
- createCard: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "POST",
- params: {
- column_id: {
- required: true,
- type: "integer"
- },
- content_id: {
- type: "integer"
- },
- content_type: {
- type: "string"
- },
- note: {
- type: "string"
+ 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);
+ }
}
- },
- url: "/projects/columns/:column_id/cards"
- },
- createColumn: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "POST",
- params: {
- name: {
- required: true,
- type: "string"
- },
- project_id: {
- required: true,
- type: "integer"
+ 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);
+ }
}
- },
- url: "/projects/:project_id/columns"
- },
- createForAuthenticatedUser: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "POST",
- params: {
- body: {
- type: "string"
- },
- name: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/user/projects"
- },
- createForOrg: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "POST",
- params: {
- body: {
- type: "string"
- },
- name: {
- required: true,
- type: "string"
- },
- org: {
- required: true,
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/orgs/:org/projects"
- },
- createForRepo: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "POST",
- params: {
- body: {
- type: "string"
- },
- name: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/projects"
- },
- delete: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "DELETE",
- params: {
- project_id: {
- required: true,
- type: "integer"
+ 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);
+ }
}
- },
- url: "/projects/:project_id"
- },
- deleteCard: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "DELETE",
- params: {
- card_id: {
- required: true,
- type: "integer"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/projects/columns/cards/:card_id"
- },
- deleteColumn: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "DELETE",
- params: {
- column_id: {
- required: true,
- type: "integer"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/projects/columns/:column_id"
- },
- get: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "GET",
- params: {
- project_id: {
- required: true,
- type: "integer"
+ 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);
+ }
}
- },
- url: "/projects/:project_id"
- },
- getCard: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "GET",
- params: {
- card_id: {
- required: true,
- type: "integer"
+ 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);
+ }
}
- },
- url: "/projects/columns/cards/:card_id"
- },
- getColumn: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "GET",
- params: {
- column_id: {
- required: true,
- type: "integer"
+ 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);
+ }
}
- },
- url: "/projects/columns/:column_id"
- },
- listCards: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "GET",
- params: {
- archived_state: {
- enum: ["all", "archived", "not_archived"],
- type: "string"
- },
- column_id: {
- required: true,
- type: "integer"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ 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);
+ }
}
- },
- url: "/projects/columns/:column_id/cards"
- },
- listCollaborators: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "GET",
- params: {
- affiliation: {
- enum: ["outside", "direct", "all"],
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- project_id: {
- required: true,
- type: "integer"
+ }
+ compute_alpha.Resource$Targetpools = Resource$Targetpools;
+ class Resource$Targetsslproxies {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/projects/:project_id/collaborators"
- },
- listColumns: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- project_id: {
- required: true,
- type: "integer"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/projects/:project_id/columns"
- },
- listForOrg: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- state: {
- enum: ["open", "closed", "all"],
- type: "string"
+ 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);
+ }
}
- },
- url: "/orgs/:org/projects"
- },
- listForRepo: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- state: {
- enum: ["open", "closed", "all"],
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/projects"
- },
- listForUser: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- state: {
- enum: ["open", "closed", "all"],
- type: "string"
- },
- username: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/users/:username/projects"
- },
- moveCard: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "POST",
- params: {
- card_id: {
- required: true,
- type: "integer"
- },
- column_id: {
- type: "integer"
- },
- position: {
- required: true,
- type: "string",
- validation: "^(top|bottom|after:\\d+)$"
+ 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);
+ }
}
- },
- url: "/projects/columns/cards/:card_id/moves"
- },
- moveColumn: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "POST",
- params: {
- column_id: {
- required: true,
- type: "integer"
- },
- position: {
- required: true,
- type: "string",
- validation: "^(first|last|after:\\d+)$"
+ 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);
+ }
}
- },
- url: "/projects/columns/:column_id/moves"
- },
- removeCollaborator: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "DELETE",
- params: {
- project_id: {
- required: true,
- type: "integer"
- },
- username: {
- required: true,
- type: "string"
+ }
+ compute_alpha.Resource$Targetsslproxies = Resource$Targetsslproxies;
+ class Resource$Targettcpproxies {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/projects/:project_id/collaborators/:username"
- },
- reviewUserPermissionLevel: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "GET",
- params: {
- project_id: {
- required: true,
- type: "integer"
- },
- username: {
- required: true,
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/projects/:project_id/collaborators/:username/permission"
- },
- update: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "PATCH",
- params: {
- body: {
- type: "string"
- },
- name: {
- type: "string"
- },
- organization_permission: {
- type: "string"
- },
- private: {
- type: "boolean"
- },
- project_id: {
- required: true,
- type: "integer"
- },
- state: {
- enum: ["open", "closed"],
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/projects/:project_id"
- },
- updateCard: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "PATCH",
- params: {
- archived: {
- type: "boolean"
- },
- card_id: {
- required: true,
- type: "integer"
- },
- note: {
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/projects/columns/cards/:card_id"
- },
- updateColumn: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "PATCH",
- params: {
- column_id: {
- required: true,
- type: "integer"
- },
- name: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/projects/columns/:column_id"
}
- },
- pulls: {
- checkIfMerged: {
- method: "GET",
- params: {
- number: {
- alias: "pull_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- pull_number: {
- required: true,
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ compute_alpha.Resource$Targettcpproxies = Resource$Targettcpproxies;
+ class Resource$Targetvpngateways {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/pulls/:pull_number/merge"
- },
- create: {
- method: "POST",
- params: {
- base: {
- required: true,
- type: "string"
- },
- body: {
- type: "string"
- },
- draft: {
- type: "boolean"
- },
- head: {
- required: true,
- type: "string"
- },
- maintainer_can_modify: {
- type: "boolean"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- title: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls"
- },
- createComment: {
- method: "POST",
- params: {
- body: {
- required: true,
- type: "string"
- },
- commit_id: {
- required: true,
- type: "string"
- },
- in_reply_to: {
- deprecated: true,
- description: "The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.",
- type: "integer"
- },
- line: {
- type: "integer"
- },
- number: {
- alias: "pull_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- path: {
- required: true,
- type: "string"
- },
- position: {
- type: "integer"
- },
- pull_number: {
- required: true,
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- side: {
- enum: ["LEFT", "RIGHT"],
- type: "string"
- },
- start_line: {
- type: "integer"
- },
- start_side: {
- enum: ["LEFT", "RIGHT", "side"],
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls/:pull_number/comments"
- },
- createCommentReply: {
- deprecated: "octokit.pulls.createCommentReply() has been renamed to octokit.pulls.createComment() (2019-09-09)",
- method: "POST",
- params: {
- body: {
- required: true,
- type: "string"
- },
- commit_id: {
- required: true,
- type: "string"
- },
- in_reply_to: {
- deprecated: true,
- description: "The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.",
- type: "integer"
- },
- line: {
- type: "integer"
- },
- number: {
- alias: "pull_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- path: {
- required: true,
- type: "string"
- },
- position: {
- type: "integer"
- },
- pull_number: {
- required: true,
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- side: {
- enum: ["LEFT", "RIGHT"],
- type: "string"
- },
- start_line: {
- type: "integer"
- },
- start_side: {
- enum: ["LEFT", "RIGHT", "side"],
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls/:pull_number/comments"
- },
- createFromIssue: {
- deprecated: "octokit.pulls.createFromIssue() is deprecated, see https://developer.github.com/v3/pulls/#create-a-pull-request",
- method: "POST",
- params: {
- base: {
- required: true,
- type: "string"
- },
- draft: {
- type: "boolean"
- },
- head: {
- required: true,
- type: "string"
- },
- issue: {
- required: true,
- type: "integer"
- },
- maintainer_can_modify: {
- type: "boolean"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls"
- },
- createReview: {
- method: "POST",
- params: {
- body: {
- type: "string"
- },
- comments: {
- type: "object[]"
- },
- "comments[].body": {
- required: true,
- type: "string"
- },
- "comments[].path": {
- required: true,
- type: "string"
- },
- "comments[].position": {
- required: true,
- type: "integer"
- },
- commit_id: {
- type: "string"
- },
- event: {
- enum: ["APPROVE", "REQUEST_CHANGES", "COMMENT"],
- type: "string"
- },
- number: {
- alias: "pull_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- pull_number: {
- required: true,
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls/:pull_number/reviews"
- },
- createReviewCommentReply: {
- method: "POST",
- params: {
- body: {
- required: true,
- type: "string"
- },
- comment_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- pull_number: {
- required: true,
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies"
- },
- createReviewRequest: {
- method: "POST",
- params: {
- number: {
- alias: "pull_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- pull_number: {
- required: true,
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- reviewers: {
- type: "string[]"
- },
- team_reviewers: {
- type: "string[]"
+ }
+ compute_alpha.Resource$Targetvpngateways = Resource$Targetvpngateways;
+ class Resource$Urlmaps {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"
- },
- deleteComment: {
- method: "DELETE",
- params: {
- comment_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls/comments/:comment_id"
- },
- deletePendingReview: {
- method: "DELETE",
- params: {
- number: {
- alias: "pull_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- pull_number: {
- required: true,
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- review_id: {
- required: true,
- type: "integer"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"
- },
- deleteReviewRequest: {
- method: "DELETE",
- params: {
- number: {
- alias: "pull_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- pull_number: {
- required: true,
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- reviewers: {
- type: "string[]"
- },
- team_reviewers: {
- type: "string[]"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"
- },
- dismissReview: {
- method: "PUT",
- params: {
- message: {
- required: true,
- type: "string"
- },
- number: {
- alias: "pull_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- pull_number: {
- required: true,
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- review_id: {
- required: true,
- type: "integer"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals"
- },
- get: {
- method: "GET",
- params: {
- number: {
- alias: "pull_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- pull_number: {
- required: true,
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls/:pull_number"
- },
- getComment: {
- method: "GET",
- params: {
- comment_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls/comments/:comment_id"
- },
- getCommentsForReview: {
- method: "GET",
- params: {
- number: {
- alias: "pull_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- pull_number: {
- required: true,
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- review_id: {
- required: true,
- type: "integer"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments"
- },
- getReview: {
- method: "GET",
- params: {
- number: {
- alias: "pull_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- pull_number: {
- required: true,
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- review_id: {
- required: true,
- type: "integer"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"
- },
- list: {
- method: "GET",
- params: {
- base: {
- type: "string"
- },
- direction: {
- enum: ["asc", "desc"],
- type: "string"
- },
- head: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- sort: {
- enum: ["created", "updated", "popularity", "long-running"],
- type: "string"
- },
- state: {
- enum: ["open", "closed", "all"],
- type: "string"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls"
- },
- listComments: {
- method: "GET",
- params: {
- direction: {
- enum: ["asc", "desc"],
- type: "string"
- },
- number: {
- alias: "pull_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- pull_number: {
- required: true,
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- since: {
- type: "string"
- },
- sort: {
- enum: ["created", "updated"],
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls/:pull_number/comments"
- },
- listCommentsForRepo: {
- method: "GET",
- params: {
- direction: {
- enum: ["asc", "desc"],
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- since: {
- type: "string"
- },
- sort: {
- enum: ["created", "updated"],
- type: "string"
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls/comments"
- },
- listCommits: {
- method: "GET",
- params: {
- number: {
- alias: "pull_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- pull_number: {
- required: true,
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls/:pull_number/commits"
- },
- listFiles: {
- method: "GET",
- params: {
- number: {
- alias: "pull_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- pull_number: {
- required: true,
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls/:pull_number/files"
- },
- listReviewRequests: {
- method: "GET",
- params: {
- number: {
- alias: "pull_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- pull_number: {
- required: true,
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"
- },
- listReviews: {
- method: "GET",
- params: {
- number: {
- alias: "pull_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- pull_number: {
- required: true,
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ compute_alpha.Resource$Vpngateways = Resource$Vpngateways;
+ class Resource$Vpntunnels {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/pulls/:pull_number/reviews"
- },
- merge: {
- method: "PUT",
- params: {
- commit_message: {
- type: "string"
- },
- commit_title: {
- type: "string"
- },
- merge_method: {
- enum: ["merge", "squash", "rebase"],
- type: "string"
- },
- number: {
- alias: "pull_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- pull_number: {
- required: true,
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- sha: {
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls/:pull_number/merge"
- },
- submitReview: {
- method: "POST",
- params: {
- body: {
- type: "string"
- },
- event: {
- enum: ["APPROVE", "REQUEST_CHANGES", "COMMENT"],
- required: true,
- type: "string"
- },
- number: {
- alias: "pull_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- pull_number: {
- required: true,
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- review_id: {
- required: true,
- type: "integer"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events"
- },
- update: {
- method: "PATCH",
- params: {
- base: {
- type: "string"
- },
- body: {
- type: "string"
- },
- maintainer_can_modify: {
- type: "boolean"
- },
- number: {
- alias: "pull_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- pull_number: {
- required: true,
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- state: {
- enum: ["open", "closed"],
- type: "string"
- },
- title: {
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls/:pull_number"
- },
- updateBranch: {
- headers: {
- accept: "application/vnd.github.lydian-preview+json"
- },
- method: "PUT",
- params: {
- expected_head_sha: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- pull_number: {
- required: true,
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls/:pull_number/update-branch"
- },
- updateComment: {
- method: "PATCH",
- params: {
- body: {
- required: true,
- type: "string"
- },
- comment_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls/comments/:comment_id"
- },
- updateReview: {
- method: "PUT",
- params: {
- body: {
- required: true,
- type: "string"
- },
- number: {
- alias: "pull_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- pull_number: {
- required: true,
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- review_id: {
- required: true,
- type: "integer"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"
}
- },
- rateLimit: {
- get: {
- method: "GET",
- params: {},
- url: "/rate_limit"
+ 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);
+ }
+ }
}
- },
- reactions: {
- createForCommitComment: {
- headers: {
- accept: "application/vnd.github.squirrel-girl-preview+json"
- },
- method: "POST",
- params: {
- comment_id: {
- required: true,
- type: "integer"
- },
- content: {
- enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ compute_alpha.Resource$Zoneinplacesnapshots = Resource$Zoneinplacesnapshots;
+ class Resource$Zoneoperations {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/comments/:comment_id/reactions"
- },
- createForIssue: {
- headers: {
- accept: "application/vnd.github.squirrel-girl-preview+json"
- },
- method: "POST",
- params: {
- content: {
- enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
- required: true,
- type: "string"
- },
- issue_number: {
- required: true,
- type: "integer"
- },
- number: {
- alias: "issue_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/issues/:issue_number/reactions"
- },
- createForIssueComment: {
- headers: {
- accept: "application/vnd.github.squirrel-girl-preview+json"
- },
- method: "POST",
- params: {
- comment_id: {
- required: true,
- type: "integer"
- },
- content: {
- enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions"
- },
- createForPullRequestReviewComment: {
- headers: {
- accept: "application/vnd.github.squirrel-girl-preview+json"
- },
- method: "POST",
- params: {
- comment_id: {
- required: true,
- type: "integer"
- },
- content: {
- enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions"
- },
- createForTeamDiscussion: {
- deprecated: "octokit.reactions.createForTeamDiscussion() has been renamed to octokit.reactions.createForTeamDiscussionLegacy() (2020-01-16)",
- headers: {
- accept: "application/vnd.github.squirrel-girl-preview+json"
- },
- method: "POST",
- params: {
- content: {
- enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
- required: true,
- type: "string"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ 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);
+ }
}
- },
- url: "/teams/:team_id/discussions/:discussion_number/reactions"
- },
- createForTeamDiscussionComment: {
- deprecated: "octokit.reactions.createForTeamDiscussionComment() has been renamed to octokit.reactions.createForTeamDiscussionCommentLegacy() (2020-01-16)",
- headers: {
- accept: "application/vnd.github.squirrel-girl-preview+json"
- },
- method: "POST",
- params: {
- comment_number: {
- required: true,
- type: "integer"
- },
- content: {
- enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
- required: true,
- type: "string"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ }
+ compute_alpha.Resource$Zoneoperations = Resource$Zoneoperations;
+ class Resource$Zones {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
- },
- createForTeamDiscussionCommentInOrg: {
- headers: {
- accept: "application/vnd.github.squirrel-girl-preview+json"
- },
- method: "POST",
- params: {
- comment_number: {
- required: true,
- type: "integer"
- },
- content: {
- enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
- required: true,
- type: "string"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- org: {
- required: true,
- type: "string"
- },
- team_slug: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"
- },
- createForTeamDiscussionCommentLegacy: {
- deprecated: "octokit.reactions.createForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy",
- headers: {
- accept: "application/vnd.github.squirrel-girl-preview+json"
- },
- method: "POST",
- params: {
- comment_number: {
- required: true,
- type: "integer"
- },
- content: {
- enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
- required: true,
- type: "string"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ if (typeof 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);
+ }
}
- },
- url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
- },
- createForTeamDiscussionInOrg: {
- headers: {
- accept: "application/vnd.github.squirrel-girl-preview+json"
- },
- method: "POST",
- params: {
- content: {
- enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
- required: true,
- type: "string"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- org: {
- required: true,
- type: "string"
- },
- team_slug: {
- required: true,
- type: "string"
+ }
+ compute_alpha.Resource$Zones = Resource$Zones;
+})(compute_alpha = exports.compute_alpha || (exports.compute_alpha = {}));
+//# sourceMappingURL=alpha.js.map
+
+/***/ }),
+/* 952 */,
+/* 953 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+module.exports = authenticationPlugin;
+
+const { Deprecation } = __webpack_require__(692);
+const once = __webpack_require__(969);
+
+const deprecateAuthenticate = once((log, deprecation) => log.warn(deprecation));
+
+const authenticate = __webpack_require__(790);
+const beforeRequest = __webpack_require__(140);
+const requestError = __webpack_require__(240);
+
+function authenticationPlugin(octokit, options) {
+ if (options.auth) {
+ octokit.authenticate = () => {
+ deprecateAuthenticate(
+ octokit.log,
+ new Deprecation(
+ '[@octokit/rest] octokit.authenticate() is deprecated and has no effect when "auth" option is set on Octokit constructor'
+ )
+ );
+ };
+ return;
+ }
+ const state = {
+ octokit,
+ auth: false
+ };
+ octokit.authenticate = authenticate.bind(null, state);
+ octokit.hook.before("request", beforeRequest.bind(null, state));
+ octokit.hook.error("request", requestError.bind(null, state));
+}
+
+
+/***/ }),
+/* 954 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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);
}
- },
- url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"
- },
- createForTeamDiscussionLegacy: {
- deprecated: "octokit.reactions.createForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy",
- headers: {
- accept: "application/vnd.github.squirrel-girl-preview+json"
- },
- method: "POST",
- params: {
- content: {
- enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
- required: true,
- type: "string"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ }
+ 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);
}
- },
- url: "/teams/:team_id/discussions/:discussion_number/reactions"
- },
- delete: {
- headers: {
- accept: "application/vnd.github.squirrel-girl-preview+json"
- },
- method: "DELETE",
- params: {
- reaction_id: {
- required: true,
- type: "integer"
+ 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);
+ }
}
- },
- url: "/reactions/:reaction_id"
- },
- listForCommitComment: {
- headers: {
- accept: "application/vnd.github.squirrel-girl-preview+json"
- },
- method: "GET",
- params: {
- comment_id: {
- required: true,
- type: "integer"
- },
- content: {
- enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/comments/:comment_id/reactions"
- },
- listForIssue: {
- headers: {
- accept: "application/vnd.github.squirrel-girl-preview+json"
- },
- method: "GET",
- params: {
- content: {
- enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
- type: "string"
- },
- issue_number: {
- required: true,
- type: "integer"
- },
- number: {
- alias: "issue_number",
- deprecated: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ 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);
}
- },
- url: "/repos/:owner/:repo/issues/:issue_number/reactions"
- },
- listForIssueComment: {
- headers: {
- accept: "application/vnd.github.squirrel-girl-preview+json"
- },
- method: "GET",
- params: {
- comment_id: {
- required: true,
- type: "integer"
- },
- content: {
- enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions"
- },
- listForPullRequestReviewComment: {
- headers: {
- accept: "application/vnd.github.squirrel-girl-preview+json"
- },
- method: "GET",
- params: {
- comment_id: {
- required: true,
- type: "integer"
- },
- content: {
- enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ create(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (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);
+ }
}
- },
- url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions"
- },
- listForTeamDiscussion: {
- deprecated: "octokit.reactions.listForTeamDiscussion() has been renamed to octokit.reactions.listForTeamDiscussionLegacy() (2020-01-16)",
- headers: {
- accept: "application/vnd.github.squirrel-girl-preview+json"
- },
- method: "GET",
- params: {
- content: {
- enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
- type: "string"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (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);
+ }
}
- },
- url: "/teams/:team_id/discussions/:discussion_number/reactions"
- },
- listForTeamDiscussionComment: {
- deprecated: "octokit.reactions.listForTeamDiscussionComment() has been renamed to octokit.reactions.listForTeamDiscussionCommentLegacy() (2020-01-16)",
- headers: {
- accept: "application/vnd.github.squirrel-girl-preview+json"
- },
- method: "GET",
- params: {
- comment_number: {
- required: true,
- type: "integer"
- },
- content: {
- enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
- type: "string"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ 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;
}
- },
- url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
- },
- listForTeamDiscussionCommentInOrg: {
- headers: {
- accept: "application/vnd.github.squirrel-girl-preview+json"
- },
- method: "GET",
- params: {
- comment_number: {
- required: true,
- type: "integer"
- },
- content: {
- enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
- type: "string"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- org: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- team_slug: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"
- },
- listForTeamDiscussionCommentLegacy: {
- deprecated: "octokit.reactions.listForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy",
- headers: {
- accept: "application/vnd.github.squirrel-girl-preview+json"
- },
- method: "GET",
- params: {
- comment_number: {
- required: true,
- type: "integer"
- },
- content: {
- enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
- type: "string"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ 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);
+ }
}
- },
- url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"
- },
- listForTeamDiscussionInOrg: {
- headers: {
- accept: "application/vnd.github.squirrel-girl-preview+json"
- },
- method: "GET",
- params: {
- content: {
- enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
- type: "string"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- org: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- team_slug: {
- required: true,
- type: "string"
+ }
+ dataflow_v1b3.Resource$Projects$Jobs$Debug = Resource$Projects$Jobs$Debug;
+ class Resource$Projects$Jobs$Messages {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"
- },
- listForTeamDiscussionLegacy: {
- deprecated: "octokit.reactions.listForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy",
- headers: {
- accept: "application/vnd.github.squirrel-girl-preview+json"
- },
- method: "GET",
- params: {
- content: {
- enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"],
- type: "string"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (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);
+ }
}
- },
- url: "/teams/:team_id/discussions/:discussion_number/reactions"
}
- },
- repos: {
- acceptInvitation: {
- method: "PATCH",
- params: {
- invitation_id: {
- required: true,
- type: "integer"
+ dataflow_v1b3.Resource$Projects$Jobs$Messages = Resource$Projects$Jobs$Messages;
+ class Resource$Projects$Jobs$Workitems {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/user/repository_invitations/:invitation_id"
- },
- addCollaborator: {
- method: "PUT",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- permission: {
- enum: ["pull", "push", "admin"],
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- username: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/collaborators/:username"
- },
- addDeployKey: {
- method: "POST",
- params: {
- key: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- read_only: {
- type: "boolean"
- },
- repo: {
- required: true,
- type: "string"
- },
- title: {
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/keys"
- },
- addProtectedBranchAdminEnforcement: {
- method: "POST",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ 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);
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"
- },
- addProtectedBranchAppRestrictions: {
- method: "POST",
- params: {
- apps: {
- mapTo: "data",
- required: true,
- type: "string[]"
- },
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
- },
- addProtectedBranchRequiredSignatures: {
- headers: {
- accept: "application/vnd.github.zzzax-preview+json"
- },
- method: "POST",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ dataflow_v1b3.Resource$Projects$Locations = Resource$Projects$Locations;
+ class Resource$Projects$Locations$Flextemplates {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"
- },
- addProtectedBranchRequiredStatusChecksContexts: {
- method: "POST",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- contexts: {
- mapTo: "data",
- required: true,
- type: "string[]"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
- },
- addProtectedBranchTeamRestrictions: {
- method: "POST",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- teams: {
- mapTo: "data",
- required: true,
- type: "string[]"
+ }
+ 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);
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
- },
- addProtectedBranchUserRestrictions: {
- method: "POST",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- users: {
- mapTo: "data",
- required: true,
- type: "string[]"
+ create(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
- },
- checkCollaborator: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- username: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (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);
+ }
}
- },
- url: "/repos/:owner/:repo/collaborators/:username"
- },
- checkVulnerabilityAlerts: {
- headers: {
- accept: "application/vnd.github.dorian-preview+json"
- },
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/vulnerability-alerts"
- },
- compareCommits: {
- method: "GET",
- params: {
- base: {
- required: true,
- type: "string"
- },
- head: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (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);
+ }
}
- },
- url: "/repos/:owner/:repo/compare/:base...:head"
- },
- createCommitComment: {
- method: "POST",
- params: {
- body: {
- required: true,
- type: "string"
- },
- commit_sha: {
- required: true,
- type: "string"
- },
- line: {
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- path: {
- type: "string"
- },
- position: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- sha: {
- alias: "commit_sha",
- deprecated: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/commits/:commit_sha/comments"
- },
- createDeployment: {
- method: "POST",
- params: {
- auto_merge: {
- type: "boolean"
- },
- description: {
- type: "string"
- },
- environment: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- payload: {
- type: "string"
- },
- production_environment: {
- type: "boolean"
- },
- ref: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- required_contexts: {
- type: "string[]"
- },
- task: {
- type: "string"
- },
- transient_environment: {
- type: "boolean"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (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);
+ }
}
- },
- url: "/repos/:owner/:repo/deployments"
- },
- createDeploymentStatus: {
- method: "POST",
- params: {
- auto_inactive: {
- type: "boolean"
- },
- deployment_id: {
- required: true,
- type: "integer"
- },
- description: {
- type: "string"
- },
- environment: {
- enum: ["production", "staging", "qa"],
- type: "string"
- },
- environment_url: {
- type: "string"
- },
- log_url: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- state: {
- enum: ["error", "failure", "inactive", "in_progress", "queued", "pending", "success"],
- required: true,
- type: "string"
- },
- target_url: {
- type: "string"
+ }
+ dataflow_v1b3.Resource$Projects$Locations$Jobs = Resource$Projects$Locations$Jobs;
+ class Resource$Projects$Locations$Jobs$Debug {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/deployments/:deployment_id/statuses"
- },
- createDispatchEvent: {
- method: "POST",
- params: {
- client_payload: {
- type: "object"
- },
- event_type: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/dispatches"
- },
- createFile: {
- deprecated: "octokit.repos.createFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)",
- method: "PUT",
- params: {
- author: {
- type: "object"
- },
- "author.email": {
- required: true,
- type: "string"
- },
- "author.name": {
- required: true,
- type: "string"
- },
- branch: {
- type: "string"
- },
- committer: {
- type: "object"
- },
- "committer.email": {
- required: true,
- type: "string"
- },
- "committer.name": {
- required: true,
- type: "string"
- },
- content: {
- required: true,
- type: "string"
- },
- message: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- path: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- sha: {
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/contents/:path"
- },
- createForAuthenticatedUser: {
- method: "POST",
- params: {
- allow_merge_commit: {
- type: "boolean"
- },
- allow_rebase_merge: {
- type: "boolean"
- },
- allow_squash_merge: {
- type: "boolean"
- },
- auto_init: {
- type: "boolean"
- },
- delete_branch_on_merge: {
- type: "boolean"
- },
- description: {
- type: "string"
- },
- gitignore_template: {
- type: "string"
- },
- has_issues: {
- type: "boolean"
- },
- has_projects: {
- type: "boolean"
- },
- has_wiki: {
- type: "boolean"
- },
- homepage: {
- type: "string"
- },
- is_template: {
- type: "boolean"
- },
- license_template: {
- type: "string"
- },
- name: {
- required: true,
- type: "string"
- },
- private: {
- type: "boolean"
- },
- team_id: {
- type: "integer"
- },
- visibility: {
- enum: ["public", "private", "visibility", "internal"],
- type: "string"
+ }
+ dataflow_v1b3.Resource$Projects$Locations$Jobs$Debug = Resource$Projects$Locations$Jobs$Debug;
+ class Resource$Projects$Locations$Jobs$Messages {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/user/repos"
- },
- createFork: {
- method: "POST",
- params: {
- organization: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (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);
+ }
}
- },
- url: "/repos/:owner/:repo/forks"
- },
- createHook: {
- method: "POST",
- params: {
- active: {
- type: "boolean"
- },
- config: {
- required: true,
- type: "object"
- },
- "config.content_type": {
- type: "string"
- },
- "config.insecure_ssl": {
- type: "string"
- },
- "config.secret": {
- type: "string"
- },
- "config.url": {
- required: true,
- type: "string"
- },
- events: {
- type: "string[]"
- },
- name: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ dataflow_v1b3.Resource$Projects$Locations$Jobs$Messages = Resource$Projects$Locations$Jobs$Messages;
+ class Resource$Projects$Locations$Jobs$Snapshots {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/hooks"
- },
- createInOrg: {
- method: "POST",
- params: {
- allow_merge_commit: {
- type: "boolean"
- },
- allow_rebase_merge: {
- type: "boolean"
- },
- allow_squash_merge: {
- type: "boolean"
- },
- auto_init: {
- type: "boolean"
- },
- delete_branch_on_merge: {
- type: "boolean"
- },
- description: {
- type: "string"
- },
- gitignore_template: {
- type: "string"
- },
- has_issues: {
- type: "boolean"
- },
- has_projects: {
- type: "boolean"
- },
- has_wiki: {
- type: "boolean"
- },
- homepage: {
- type: "string"
- },
- is_template: {
- type: "boolean"
- },
- license_template: {
- type: "string"
- },
- name: {
- required: true,
- type: "string"
- },
- org: {
- required: true,
- type: "string"
- },
- private: {
- type: "boolean"
- },
- team_id: {
- type: "integer"
- },
- visibility: {
- enum: ["public", "private", "visibility", "internal"],
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (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);
+ }
}
- },
- url: "/orgs/:org/repos"
- },
- createOrUpdateFile: {
- method: "PUT",
- params: {
- author: {
- type: "object"
- },
- "author.email": {
- required: true,
- type: "string"
- },
- "author.name": {
- required: true,
- type: "string"
- },
- branch: {
- type: "string"
- },
- committer: {
- type: "object"
- },
- "committer.email": {
- required: true,
- type: "string"
- },
- "committer.name": {
- required: true,
- type: "string"
- },
- content: {
- required: true,
- type: "string"
- },
- message: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- path: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- sha: {
- type: "string"
+ }
+ dataflow_v1b3.Resource$Projects$Locations$Jobs$Snapshots = Resource$Projects$Locations$Jobs$Snapshots;
+ class Resource$Projects$Locations$Jobs$Workitems {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/contents/:path"
- },
- createRelease: {
- method: "POST",
- params: {
- body: {
- type: "string"
- },
- draft: {
- type: "boolean"
- },
- name: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- prerelease: {
- type: "boolean"
- },
- repo: {
- required: true,
- type: "string"
- },
- tag_name: {
- required: true,
- type: "string"
- },
- target_commitish: {
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/releases"
- },
- createStatus: {
- method: "POST",
- params: {
- context: {
- type: "string"
- },
- description: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- sha: {
- required: true,
- type: "string"
- },
- state: {
- enum: ["error", "failure", "pending", "success"],
- required: true,
- type: "string"
- },
- target_url: {
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/statuses/:sha"
- },
- createUsingTemplate: {
- headers: {
- accept: "application/vnd.github.baptiste-preview+json"
- },
- method: "POST",
- params: {
- description: {
- type: "string"
- },
- name: {
- required: true,
- type: "string"
- },
- owner: {
- type: "string"
- },
- private: {
- type: "boolean"
- },
- template_owner: {
- required: true,
- type: "string"
- },
- template_repo: {
- required: true,
- type: "string"
+ }
+ dataflow_v1b3.Resource$Projects$Locations$Jobs$Workitems = Resource$Projects$Locations$Jobs$Workitems;
+ class Resource$Projects$Locations$Snapshots {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:template_owner/:template_repo/generate"
- },
- declineInvitation: {
- method: "DELETE",
- params: {
- invitation_id: {
- required: true,
- type: "integer"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (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);
+ }
}
- },
- url: "/user/repository_invitations/:invitation_id"
- },
- delete: {
- method: "DELETE",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ dataflow_v1b3.Resource$Projects$Locations$Sql = Resource$Projects$Locations$Sql;
+ class Resource$Projects$Locations$Templates {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo"
- },
- deleteCommitComment: {
- method: "DELETE",
- params: {
- comment_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ create(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (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);
+ }
}
- },
- url: "/repos/:owner/:repo/comments/:comment_id"
- },
- deleteDownload: {
- method: "DELETE",
- params: {
- download_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (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);
+ }
}
- },
- url: "/repos/:owner/:repo/downloads/:download_id"
- },
- deleteFile: {
- method: "DELETE",
- params: {
- author: {
- type: "object"
- },
- "author.email": {
- type: "string"
- },
- "author.name": {
- type: "string"
- },
- branch: {
- type: "string"
- },
- committer: {
- type: "object"
- },
- "committer.email": {
- type: "string"
- },
- "committer.name": {
- type: "string"
- },
- message: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- path: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- sha: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/contents/:path"
- },
- deleteHook: {
- method: "DELETE",
- params: {
- hook_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ dataflow_v1b3.Resource$Projects$Locations$Templates = Resource$Projects$Locations$Templates;
+ class Resource$Projects$Snapshots {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/hooks/:hook_id"
- },
- deleteInvitation: {
- method: "DELETE",
- params: {
- invitation_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (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);
+ }
}
- },
- url: "/repos/:owner/:repo/invitations/:invitation_id"
- },
- deleteRelease: {
- method: "DELETE",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- release_id: {
- required: true,
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (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);
+ }
}
- },
- url: "/repos/:owner/:repo/releases/:release_id"
- },
- deleteReleaseAsset: {
- method: "DELETE",
- params: {
- asset_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ dataflow_v1b3.Resource$Projects$Snapshots = Resource$Projects$Snapshots;
+ class Resource$Projects$Templates {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/releases/assets/:asset_id"
- },
- disableAutomatedSecurityFixes: {
- headers: {
- accept: "application/vnd.github.london-preview+json"
- },
- method: "DELETE",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ create(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (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);
+ }
}
- },
- url: "/repos/:owner/:repo/automated-security-fixes"
- },
- disablePagesSite: {
- headers: {
- accept: "application/vnd.github.switcheroo-preview+json"
- },
- method: "DELETE",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (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);
+ }
}
- },
- url: "/repos/:owner/:repo/pages"
- },
- disableVulnerabilityAlerts: {
- headers: {
- accept: "application/vnd.github.dorian-preview+json"
- },
- method: "DELETE",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/vulnerability-alerts"
- },
- enableAutomatedSecurityFixes: {
- headers: {
- accept: "application/vnd.github.london-preview+json"
- },
- method: "PUT",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ dataflow_v1b3.Resource$Projects$Templates = Resource$Projects$Templates;
+})(dataflow_v1b3 = exports.dataflow_v1b3 || (exports.dataflow_v1b3 = {}));
+//# sourceMappingURL=v1b3.js.map
+
+/***/ }),
+/* 955 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
+"use strict";
+
+const path = __webpack_require__(622);
+const childProcess = __webpack_require__(129);
+const crossSpawn = __webpack_require__(20);
+const stripEof = __webpack_require__(768);
+const npmRunPath = __webpack_require__(621);
+const isStream = __webpack_require__(323);
+const _getStream = __webpack_require__(145);
+const pFinally = __webpack_require__(697);
+const onExit = __webpack_require__(260);
+const errname = __webpack_require__(427);
+const stdio = __webpack_require__(168);
+
+const TEN_MEGABYTES = 1000 * 1000 * 10;
+
+function handleArgs(cmd, args, opts) {
+ let parsed;
+
+ opts = Object.assign({
+ extendEnv: true,
+ env: {}
+ }, opts);
+
+ if (opts.extendEnv) {
+ opts.env = Object.assign({}, process.env, opts.env);
+ }
+
+ if (opts.__winShell === true) {
+ delete opts.__winShell;
+ parsed = {
+ command: cmd,
+ args,
+ options: opts,
+ file: cmd,
+ original: {
+ cmd,
+ args
+ }
+ };
+ } else {
+ parsed = crossSpawn._parse(cmd, args, opts);
+ }
+
+ opts = Object.assign({
+ maxBuffer: TEN_MEGABYTES,
+ buffer: true,
+ stripEof: true,
+ preferLocal: true,
+ localDir: parsed.options.cwd || process.cwd(),
+ encoding: 'utf8',
+ reject: true,
+ cleanup: true
+ }, parsed.options);
+
+ opts.stdio = stdio(opts);
+
+ if (opts.preferLocal) {
+ opts.env = npmRunPath.env(Object.assign({}, opts, {cwd: opts.localDir}));
+ }
+
+ if (opts.detached) {
+ // #115
+ opts.cleanup = false;
+ }
+
+ if (process.platform === 'win32' && path.basename(parsed.command) === 'cmd.exe') {
+ // #116
+ parsed.args.unshift('/q');
+ }
+
+ return {
+ cmd: parsed.command,
+ args: parsed.args,
+ opts,
+ parsed
+ };
+}
+
+function handleInput(spawned, input) {
+ if (input === null || input === undefined) {
+ return;
+ }
+
+ if (isStream(input)) {
+ input.pipe(spawned.stdin);
+ } else {
+ spawned.stdin.end(input);
+ }
+}
+
+function handleOutput(opts, val) {
+ if (val && opts.stripEof) {
+ val = stripEof(val);
+ }
+
+ return val;
+}
+
+function handleShell(fn, cmd, opts) {
+ let file = '/bin/sh';
+ let args = ['-c', cmd];
+
+ opts = Object.assign({}, opts);
+
+ if (process.platform === 'win32') {
+ opts.__winShell = true;
+ file = process.env.comspec || 'cmd.exe';
+ args = ['/s', '/c', `"${cmd}"`];
+ opts.windowsVerbatimArguments = true;
+ }
+
+ if (opts.shell) {
+ file = opts.shell;
+ delete opts.shell;
+ }
+
+ return fn(file, args, opts);
+}
+
+function getStream(process, stream, {encoding, buffer, maxBuffer}) {
+ if (!process[stream]) {
+ return null;
+ }
+
+ let ret;
+
+ if (!buffer) {
+ // TODO: Use `ret = util.promisify(stream.finished)(process[stream]);` when targeting Node.js 10
+ ret = new Promise((resolve, reject) => {
+ process[stream]
+ .once('end', resolve)
+ .once('error', reject);
+ });
+ } else if (encoding) {
+ ret = _getStream(process[stream], {
+ encoding,
+ maxBuffer
+ });
+ } else {
+ ret = _getStream.buffer(process[stream], {maxBuffer});
+ }
+
+ return ret.catch(err => {
+ err.stream = stream;
+ err.message = `${stream} ${err.message}`;
+ throw err;
+ });
+}
+
+function makeError(result, options) {
+ const {stdout, stderr} = result;
+
+ let err = result.error;
+ const {code, signal} = result;
+
+ const {parsed, joinedCmd} = options;
+ const timedOut = options.timedOut || false;
+
+ if (!err) {
+ let output = '';
+
+ if (Array.isArray(parsed.opts.stdio)) {
+ if (parsed.opts.stdio[2] !== 'inherit') {
+ output += output.length > 0 ? stderr : `\n${stderr}`;
+ }
+
+ if (parsed.opts.stdio[1] !== 'inherit') {
+ output += `\n${stdout}`;
+ }
+ } else if (parsed.opts.stdio !== 'inherit') {
+ output = `\n${stderr}${stdout}`;
+ }
+
+ err = new Error(`Command failed: ${joinedCmd}${output}`);
+ err.code = code < 0 ? errname(code) : code;
+ }
+
+ err.stdout = stdout;
+ err.stderr = stderr;
+ err.failed = true;
+ err.signal = signal || null;
+ err.cmd = joinedCmd;
+ err.timedOut = timedOut;
+
+ return err;
+}
+
+function joinCmd(cmd, args) {
+ let joinedCmd = cmd;
+
+ if (Array.isArray(args) && args.length > 0) {
+ joinedCmd += ' ' + args.join(' ');
+ }
+
+ return joinedCmd;
+}
+
+module.exports = (cmd, args, opts) => {
+ const parsed = handleArgs(cmd, args, opts);
+ const {encoding, buffer, maxBuffer} = parsed.opts;
+ const joinedCmd = joinCmd(cmd, args);
+
+ let spawned;
+ try {
+ spawned = childProcess.spawn(parsed.cmd, parsed.args, parsed.opts);
+ } catch (err) {
+ return Promise.reject(err);
+ }
+
+ let removeExitHandler;
+ if (parsed.opts.cleanup) {
+ removeExitHandler = onExit(() => {
+ spawned.kill();
+ });
+ }
+
+ let timeoutId = null;
+ let timedOut = false;
+
+ const cleanup = () => {
+ if (timeoutId) {
+ clearTimeout(timeoutId);
+ timeoutId = null;
+ }
+
+ if (removeExitHandler) {
+ removeExitHandler();
+ }
+ };
+
+ if (parsed.opts.timeout > 0) {
+ timeoutId = setTimeout(() => {
+ timeoutId = null;
+ timedOut = true;
+ spawned.kill(parsed.opts.killSignal);
+ }, parsed.opts.timeout);
+ }
+
+ const processDone = new Promise(resolve => {
+ spawned.on('exit', (code, signal) => {
+ cleanup();
+ resolve({code, signal});
+ });
+
+ spawned.on('error', err => {
+ cleanup();
+ resolve({error: err});
+ });
+
+ if (spawned.stdin) {
+ spawned.stdin.on('error', err => {
+ cleanup();
+ resolve({error: err});
+ });
+ }
+ });
+
+ function destroy() {
+ if (spawned.stdout) {
+ spawned.stdout.destroy();
+ }
+
+ if (spawned.stderr) {
+ spawned.stderr.destroy();
+ }
+ }
+
+ const handlePromise = () => pFinally(Promise.all([
+ processDone,
+ getStream(spawned, 'stdout', {encoding, buffer, maxBuffer}),
+ getStream(spawned, 'stderr', {encoding, buffer, maxBuffer})
+ ]).then(arr => {
+ const result = arr[0];
+ result.stdout = arr[1];
+ result.stderr = arr[2];
+
+ if (result.error || result.code !== 0 || result.signal !== null) {
+ const err = makeError(result, {
+ joinedCmd,
+ parsed,
+ timedOut
+ });
+
+ // TODO: missing some timeout logic for killed
+ // https://github.com/nodejs/node/blob/master/lib/child_process.js#L203
+ // err.killed = spawned.killed || killed;
+ err.killed = err.killed || spawned.killed;
+
+ if (!parsed.opts.reject) {
+ return err;
+ }
+
+ throw err;
+ }
+
+ return {
+ stdout: handleOutput(parsed.opts, result.stdout),
+ stderr: handleOutput(parsed.opts, result.stderr),
+ code: 0,
+ failed: false,
+ killed: false,
+ signal: null,
+ cmd: joinedCmd,
+ timedOut: false
+ };
+ }), destroy);
+
+ crossSpawn._enoent.hookChildProcess(spawned, parsed.parsed);
+
+ handleInput(spawned, parsed.opts.input);
+
+ spawned.then = (onfulfilled, onrejected) => handlePromise().then(onfulfilled, onrejected);
+ spawned.catch = onrejected => handlePromise().catch(onrejected);
+
+ return spawned;
+};
+
+// TODO: set `stderr: 'ignore'` when that option is implemented
+module.exports.stdout = (...args) => module.exports(...args).then(x => x.stdout);
+
+// TODO: set `stdout: 'ignore'` when that option is implemented
+module.exports.stderr = (...args) => module.exports(...args).then(x => x.stderr);
+
+module.exports.shell = (cmd, opts) => handleShell(module.exports, cmd, opts);
+
+module.exports.sync = (cmd, args, opts) => {
+ const parsed = handleArgs(cmd, args, opts);
+ const joinedCmd = joinCmd(cmd, args);
+
+ if (isStream(parsed.opts.input)) {
+ throw new TypeError('The `input` option cannot be a stream in sync mode');
+ }
+
+ const result = childProcess.spawnSync(parsed.cmd, parsed.args, parsed.opts);
+ result.code = result.status;
+
+ if (result.error || result.status !== 0 || result.signal !== null) {
+ const err = makeError(result, {
+ joinedCmd,
+ parsed
+ });
+
+ if (!parsed.opts.reject) {
+ return err;
+ }
+
+ throw err;
+ }
+
+ return {
+ stdout: handleOutput(parsed.opts, result.stdout),
+ stderr: handleOutput(parsed.opts, result.stderr),
+ code: 0,
+ failed: false,
+ signal: null,
+ cmd: joinedCmd,
+ timedOut: false
+ };
+};
+
+module.exports.shellSync = (cmd, opts) => handleShell(module.exports.sync, cmd, opts);
+
+
+/***/ }),
+/* 956 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(241);
+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
+
+/***/ }),
+/* 957 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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);
}
- },
- url: "/repos/:owner/:repo/automated-security-fixes"
- },
- enablePagesSite: {
- headers: {
- accept: "application/vnd.github.switcheroo-preview+json"
- },
- method: "POST",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- source: {
- type: "object"
- },
- "source.branch": {
- enum: ["master", "gh-pages"],
- type: "string"
- },
- "source.path": {
- type: "string"
+ }
+ 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);
}
- },
- url: "/repos/:owner/:repo/pages"
- },
- enableVulnerabilityAlerts: {
- headers: {
- accept: "application/vnd.github.dorian-preview+json"
- },
- method: "PUT",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ firebaseml_v1beta2.Resource$Projects = Resource$Projects;
+ class Resource$Projects$Models {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/vulnerability-alerts"
- },
- get: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ create(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (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);
+ }
}
- },
- url: "/repos/:owner/:repo"
- },
- getAppsWithAccessToProtectedBranch: {
- method: "GET",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
- },
- getArchiveLink: {
- method: "GET",
- params: {
- archive_format: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- ref: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (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);
+ }
}
- },
- url: "/repos/:owner/:repo/:archive_format/:ref"
- },
- getBranch: {
- method: "GET",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch"
- },
- getBranchProtection: {
- method: "GET",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection"
- },
- getClones: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- per: {
- enum: ["day", "week"],
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ firebaseml_v1beta2.Resource$Projects$Models = Resource$Projects$Models;
+ class Resource$Projects$Operations {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/traffic/clones"
- },
- getCodeFrequencyStats: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (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);
+ }
}
- },
- url: "/repos/:owner/:repo/stats/code_frequency"
- },
- getCollaboratorPermissionLevel: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- username: {
- required: true,
- type: "string"
+ }
+ firebaseml_v1beta2.Resource$Projects$Operations = Resource$Projects$Operations;
+})(firebaseml_v1beta2 = exports.firebaseml_v1beta2 || (exports.firebaseml_v1beta2 = {}));
+//# sourceMappingURL=v1beta2.js.map
+
+/***/ }),
+/* 958 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(393);
+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
+
+/***/ }),
+/* 959 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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);
}
- },
- url: "/repos/:owner/:repo/collaborators/:username/permission"
- },
- getCombinedStatusForRef: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- ref: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Dfareporting = Dfareporting;
+ class Resource$Accountactiveadsummaries {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/commits/:ref/status"
- },
- getCommit: {
- method: "GET",
- params: {
- commit_sha: {
- alias: "ref",
- deprecated: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- ref: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- sha: {
- alias: "ref",
- deprecated: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/commits/:ref"
- },
- getCommitActivityStats: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Accountactiveadsummaries = Resource$Accountactiveadsummaries;
+ class Resource$Accountpermissiongroups {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/stats/commit_activity"
- },
- getCommitComment: {
- method: "GET",
- params: {
- comment_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/comments/:comment_id"
- },
- getCommitRefSha: {
- deprecated: "octokit.repos.getCommitRefSha() is deprecated, see https://developer.github.com/v3/repos/commits/#get-a-single-commit",
- headers: {
- accept: "application/vnd.github.v3.sha"
- },
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- ref: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/commits/:ref"
- },
- getContents: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- path: {
- required: true,
- type: "string"
- },
- ref: {
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Accountpermissiongroups = Resource$Accountpermissiongroups;
+ class Resource$Accountpermissions {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/contents/:path"
- },
- getContributorsStats: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/stats/contributors"
- },
- getDeployKey: {
- method: "GET",
- params: {
- key_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/keys/:key_id"
- },
- getDeployment: {
- method: "GET",
- params: {
- deployment_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Accountpermissions = Resource$Accountpermissions;
+ class Resource$Accounts {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/deployments/:deployment_id"
- },
- getDeploymentStatus: {
- method: "GET",
- params: {
- deployment_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- status_id: {
- required: true,
- type: "integer"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id"
- },
- getDownload: {
- method: "GET",
- params: {
- download_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/downloads/:download_id"
- },
- getHook: {
- method: "GET",
- params: {
- hook_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/hooks/:hook_id"
- },
- getLatestPagesBuild: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pages/builds/latest"
- },
- getLatestRelease: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Accounts = Resource$Accounts;
+ class Resource$Accountuserprofiles {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/releases/latest"
- },
- getPages: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pages"
- },
- getPagesBuild: {
- method: "GET",
- params: {
- build_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pages/builds/:build_id"
- },
- getParticipationStats: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/stats/participation"
- },
- getProtectedBranchAdminEnforcement: {
- method: "GET",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"
- },
- getProtectedBranchPullRequestReviewEnforcement: {
- method: "GET",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"
- },
- getProtectedBranchRequiredSignatures: {
- headers: {
- accept: "application/vnd.github.zzzax-preview+json"
- },
- method: "GET",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Accountuserprofiles = Resource$Accountuserprofiles;
+ class Resource$Ads {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"
- },
- getProtectedBranchRequiredStatusChecks: {
- method: "GET",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"
- },
- getProtectedBranchRestrictions: {
- method: "GET",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/restrictions"
- },
- getPunchCardStats: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/stats/punch_card"
- },
- getReadme: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- ref: {
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/readme"
- },
- getRelease: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- release_id: {
- required: true,
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/releases/:release_id"
- },
- getReleaseAsset: {
- method: "GET",
- params: {
- asset_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Ads = Resource$Ads;
+ class Resource$Advertisergroups {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/releases/assets/:asset_id"
- },
- getReleaseByTag: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- tag: {
- required: true,
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/releases/tags/:tag"
- },
- getTeamsWithAccessToProtectedBranch: {
- method: "GET",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
- },
- getTopPaths: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/traffic/popular/paths"
- },
- getTopReferrers: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Advertisergroups = Resource$Advertisergroups;
+ class Resource$Advertiserlandingpages {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/traffic/popular/referrers"
- },
- getUsersWithAccessToProtectedBranch: {
- method: "GET",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
- },
- getViews: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- per: {
- enum: ["day", "week"],
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/traffic/views"
- },
- list: {
- method: "GET",
- params: {
- affiliation: {
- type: "string"
- },
- direction: {
- enum: ["asc", "desc"],
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- sort: {
- enum: ["created", "updated", "pushed", "full_name"],
- type: "string"
- },
- type: {
- enum: ["all", "owner", "public", "private", "member"],
- type: "string"
- },
- visibility: {
- enum: ["all", "public", "private"],
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/user/repos"
- },
- listAppsWithAccessToProtectedBranch: {
- deprecated: "octokit.repos.listAppsWithAccessToProtectedBranch() has been renamed to octokit.repos.getAppsWithAccessToProtectedBranch() (2019-09-13)",
- method: "GET",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
- },
- listAssetsForRelease: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- release_id: {
- required: true,
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/releases/:release_id/assets"
- },
- listBranches: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- protected: {
- type: "boolean"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Advertiserlandingpages = Resource$Advertiserlandingpages;
+ class Resource$Advertisers {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/branches"
- },
- listBranchesForHeadCommit: {
- headers: {
- accept: "application/vnd.github.groot-preview+json"
- },
- method: "GET",
- params: {
- commit_sha: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/commits/:commit_sha/branches-where-head"
- },
- listCollaborators: {
- method: "GET",
- params: {
- affiliation: {
- enum: ["outside", "direct", "all"],
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/collaborators"
- },
- listCommentsForCommit: {
- method: "GET",
- params: {
- commit_sha: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- ref: {
- alias: "commit_sha",
- deprecated: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/commits/:commit_sha/comments"
- },
- listCommitComments: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/comments"
- },
- listCommits: {
- method: "GET",
- params: {
- author: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- path: {
- type: "string"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- sha: {
- type: "string"
- },
- since: {
- type: "string"
- },
- until: {
- type: "string"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/commits"
- },
- listContributors: {
- method: "GET",
- params: {
- anon: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Advertisers = Resource$Advertisers;
+ class Resource$Browsers {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/contributors"
- },
- listDeployKeys: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/keys"
- },
- listDeploymentStatuses: {
- method: "GET",
- params: {
- deployment_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Browsers = Resource$Browsers;
+ class Resource$Campaigncreativeassociations {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/deployments/:deployment_id/statuses"
- },
- listDeployments: {
- method: "GET",
- params: {
- environment: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- ref: {
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- sha: {
- type: "string"
- },
- task: {
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/deployments"
- },
- listDownloads: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/downloads"
- },
- listForOrg: {
- method: "GET",
- params: {
- direction: {
- enum: ["asc", "desc"],
- type: "string"
- },
- org: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- sort: {
- enum: ["created", "updated", "pushed", "full_name"],
- type: "string"
- },
- type: {
- enum: ["all", "public", "private", "forks", "sources", "member", "internal"],
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/orgs/:org/repos"
- },
- listForUser: {
- method: "GET",
- params: {
- direction: {
- enum: ["asc", "desc"],
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- sort: {
- enum: ["created", "updated", "pushed", "full_name"],
- type: "string"
- },
- type: {
- enum: ["all", "owner", "member"],
- type: "string"
- },
- username: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/users/:username/repos"
- },
- listForks: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- sort: {
- enum: ["newest", "oldest", "stargazers"],
- type: "string"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/forks"
- },
- listHooks: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/hooks"
- },
- listInvitations: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Campaigns = Resource$Campaigns;
+ class Resource$Changelogs {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/invitations"
- },
- listInvitationsForAuthenticatedUser: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/user/repository_invitations"
- },
- listLanguages: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/languages"
- },
- listPagesBuilds: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Changelogs = Resource$Changelogs;
+ class Resource$Cities {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/pages/builds"
- },
- listProtectedBranchRequiredStatusChecksContexts: {
- method: "GET",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
- },
- listProtectedBranchTeamRestrictions: {
- deprecated: "octokit.repos.listProtectedBranchTeamRestrictions() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-09)",
- method: "GET",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Cities = Resource$Cities;
+ class Resource$Connectiontypes {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
- },
- listProtectedBranchUserRestrictions: {
- deprecated: "octokit.repos.listProtectedBranchUserRestrictions() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-09)",
- method: "GET",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
- },
- listPublic: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- since: {
- type: "integer"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repositories"
- },
- listPullRequestsAssociatedWithCommit: {
- headers: {
- accept: "application/vnd.github.groot-preview+json"
- },
- method: "GET",
- params: {
- commit_sha: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Connectiontypes = Resource$Connectiontypes;
+ class Resource$Contentcategories {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/commits/:commit_sha/pulls"
- },
- listReleases: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/releases"
- },
- listStatusesForRef: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- ref: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/commits/:ref/statuses"
- },
- listTags: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/tags"
- },
- listTeams: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/teams"
- },
- listTeamsWithAccessToProtectedBranch: {
- deprecated: "octokit.repos.listTeamsWithAccessToProtectedBranch() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-13)",
- method: "GET",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
- },
- listTopics: {
- headers: {
- accept: "application/vnd.github.mercy-preview+json"
- },
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/topics"
- },
- listUsersWithAccessToProtectedBranch: {
- deprecated: "octokit.repos.listUsersWithAccessToProtectedBranch() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-13)",
- method: "GET",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Contentcategories = Resource$Contentcategories;
+ class Resource$Conversions {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
- },
- merge: {
- method: "POST",
- params: {
- base: {
- required: true,
- type: "string"
- },
- commit_message: {
- type: "string"
- },
- head: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/merges"
- },
- pingHook: {
- method: "POST",
- params: {
- hook_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Conversions = Resource$Conversions;
+ class Resource$Countries {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/hooks/:hook_id/pings"
- },
- removeBranchProtection: {
- method: "DELETE",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection"
- },
- removeCollaborator: {
- method: "DELETE",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- username: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/collaborators/:username"
- },
- removeDeployKey: {
- method: "DELETE",
- params: {
- key_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Countries = Resource$Countries;
+ class Resource$Creativeassets {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/keys/:key_id"
- },
- removeProtectedBranchAdminEnforcement: {
- method: "DELETE",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"
- },
- removeProtectedBranchAppRestrictions: {
- method: "DELETE",
- params: {
- apps: {
- mapTo: "data",
- required: true,
- type: "string[]"
- },
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Creativeassets = Resource$Creativeassets;
+ class Resource$Creativefields {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
- },
- removeProtectedBranchPullRequestReviewEnforcement: {
- method: "DELETE",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"
- },
- removeProtectedBranchRequiredSignatures: {
- headers: {
- accept: "application/vnd.github.zzzax-preview+json"
- },
- method: "DELETE",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"
- },
- removeProtectedBranchRequiredStatusChecks: {
- method: "DELETE",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"
- },
- removeProtectedBranchRequiredStatusChecksContexts: {
- method: "DELETE",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- contexts: {
- mapTo: "data",
- required: true,
- type: "string[]"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
- },
- removeProtectedBranchRestrictions: {
- method: "DELETE",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/restrictions"
- },
- removeProtectedBranchTeamRestrictions: {
- method: "DELETE",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- teams: {
- mapTo: "data",
- required: true,
- type: "string[]"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
- },
- removeProtectedBranchUserRestrictions: {
- method: "DELETE",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- users: {
- mapTo: "data",
- required: true,
- type: "string[]"
+ }
+ dfareporting_v3_3.Resource$Creativefields = Resource$Creativefields;
+ class Resource$Creativefieldvalues {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
- },
- replaceProtectedBranchAppRestrictions: {
- method: "PUT",
- params: {
- apps: {
- mapTo: "data",
- required: true,
- type: "string[]"
- },
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
- },
- replaceProtectedBranchRequiredStatusChecksContexts: {
- method: "PUT",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- contexts: {
- mapTo: "data",
- required: true,
- type: "string[]"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"
- },
- replaceProtectedBranchTeamRestrictions: {
- method: "PUT",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- teams: {
- mapTo: "data",
- required: true,
- type: "string[]"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"
- },
- replaceProtectedBranchUserRestrictions: {
- method: "PUT",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- users: {
- mapTo: "data",
- required: true,
- type: "string[]"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
- },
- replaceTopics: {
- headers: {
- accept: "application/vnd.github.mercy-preview+json"
- },
- method: "PUT",
- params: {
- names: {
- required: true,
- type: "string[]"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/topics"
- },
- requestPageBuild: {
- method: "POST",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pages/builds"
- },
- retrieveCommunityProfileMetrics: {
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Creativefieldvalues = Resource$Creativefieldvalues;
+ class Resource$Creativegroups {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/community/profile"
- },
- testPushHook: {
- method: "POST",
- params: {
- hook_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/hooks/:hook_id/tests"
- },
- transfer: {
- method: "POST",
- params: {
- new_owner: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- team_ids: {
- type: "integer[]"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/transfer"
- },
- update: {
- method: "PATCH",
- params: {
- allow_merge_commit: {
- type: "boolean"
- },
- allow_rebase_merge: {
- type: "boolean"
- },
- allow_squash_merge: {
- type: "boolean"
- },
- archived: {
- type: "boolean"
- },
- default_branch: {
- type: "string"
- },
- delete_branch_on_merge: {
- type: "boolean"
- },
- description: {
- type: "string"
- },
- has_issues: {
- type: "boolean"
- },
- has_projects: {
- type: "boolean"
- },
- has_wiki: {
- type: "boolean"
- },
- homepage: {
- type: "string"
- },
- is_template: {
- type: "boolean"
- },
- name: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- private: {
- type: "boolean"
- },
- repo: {
- required: true,
- type: "string"
- },
- visibility: {
- enum: ["public", "private", "visibility", "internal"],
- type: "string"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo"
- },
- updateBranchProtection: {
- method: "PUT",
- params: {
- allow_deletions: {
- type: "boolean"
- },
- allow_force_pushes: {
- allowNull: true,
- type: "boolean"
- },
- branch: {
- required: true,
- type: "string"
- },
- enforce_admins: {
- allowNull: true,
- required: true,
- type: "boolean"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- required_linear_history: {
- type: "boolean"
- },
- required_pull_request_reviews: {
- allowNull: true,
- required: true,
- type: "object"
- },
- "required_pull_request_reviews.dismiss_stale_reviews": {
- type: "boolean"
- },
- "required_pull_request_reviews.dismissal_restrictions": {
- type: "object"
- },
- "required_pull_request_reviews.dismissal_restrictions.teams": {
- type: "string[]"
- },
- "required_pull_request_reviews.dismissal_restrictions.users": {
- type: "string[]"
- },
- "required_pull_request_reviews.require_code_owner_reviews": {
- type: "boolean"
- },
- "required_pull_request_reviews.required_approving_review_count": {
- type: "integer"
- },
- required_status_checks: {
- allowNull: true,
- required: true,
- type: "object"
- },
- "required_status_checks.contexts": {
- required: true,
- type: "string[]"
- },
- "required_status_checks.strict": {
- required: true,
- type: "boolean"
- },
- restrictions: {
- allowNull: true,
- required: true,
- type: "object"
- },
- "restrictions.apps": {
- type: "string[]"
- },
- "restrictions.teams": {
- required: true,
- type: "string[]"
- },
- "restrictions.users": {
- required: true,
- type: "string[]"
+ }
+ dfareporting_v3_3.Resource$Creativegroups = Resource$Creativegroups;
+ class Resource$Creatives {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection"
- },
- updateCommitComment: {
- method: "PATCH",
- params: {
- body: {
- required: true,
- type: "string"
- },
- comment_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/comments/:comment_id"
- },
- updateFile: {
- deprecated: "octokit.repos.updateFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)",
- method: "PUT",
- params: {
- author: {
- type: "object"
- },
- "author.email": {
- required: true,
- type: "string"
- },
- "author.name": {
- required: true,
- type: "string"
- },
- branch: {
- type: "string"
- },
- committer: {
- type: "object"
- },
- "committer.email": {
- required: true,
- type: "string"
- },
- "committer.name": {
- required: true,
- type: "string"
- },
- content: {
- required: true,
- type: "string"
- },
- message: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- path: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- sha: {
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/contents/:path"
- },
- updateHook: {
- method: "PATCH",
- params: {
- active: {
- type: "boolean"
- },
- add_events: {
- type: "string[]"
- },
- config: {
- type: "object"
- },
- "config.content_type": {
- type: "string"
- },
- "config.insecure_ssl": {
- type: "string"
- },
- "config.secret": {
- type: "string"
- },
- "config.url": {
- required: true,
- type: "string"
- },
- events: {
- type: "string[]"
- },
- hook_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- remove_events: {
- type: "string[]"
- },
- repo: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/hooks/:hook_id"
- },
- updateInformationAboutPagesSite: {
- method: "PUT",
- params: {
- cname: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- source: {
- enum: ['"gh-pages"', '"master"', '"master /docs"'],
- type: "string"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/pages"
- },
- updateInvitation: {
- method: "PATCH",
- params: {
- invitation_id: {
- required: true,
- type: "integer"
- },
- owner: {
- required: true,
- type: "string"
- },
- permissions: {
- enum: ["read", "write", "admin"],
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/invitations/:invitation_id"
- },
- updateProtectedBranchPullRequestReviewEnforcement: {
- method: "PATCH",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- dismiss_stale_reviews: {
- type: "boolean"
- },
- dismissal_restrictions: {
- type: "object"
- },
- "dismissal_restrictions.teams": {
- type: "string[]"
- },
- "dismissal_restrictions.users": {
- type: "string[]"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- require_code_owner_reviews: {
- type: "boolean"
- },
- required_approving_review_count: {
- type: "integer"
+ }
+ dfareporting_v3_3.Resource$Creatives = Resource$Creatives;
+ class Resource$Dimensionvalues {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"
- },
- updateProtectedBranchRequiredStatusChecks: {
- method: "PATCH",
- params: {
- branch: {
- required: true,
- type: "string"
- },
- contexts: {
- type: "string[]"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- strict: {
- type: "boolean"
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"
- },
- updateRelease: {
- method: "PATCH",
- params: {
- body: {
- type: "string"
- },
- draft: {
- type: "boolean"
- },
- name: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- prerelease: {
- type: "boolean"
- },
- release_id: {
- required: true,
- type: "integer"
- },
- repo: {
- required: true,
- type: "string"
- },
- tag_name: {
- type: "string"
- },
- target_commitish: {
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Dimensionvalues = Resource$Dimensionvalues;
+ class Resource$Directorysites {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/repos/:owner/:repo/releases/:release_id"
- },
- updateReleaseAsset: {
- method: "PATCH",
- params: {
- asset_id: {
- required: true,
- type: "integer"
- },
- label: {
- type: "string"
- },
- name: {
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/repos/:owner/:repo/releases/assets/:asset_id"
- },
- uploadReleaseAsset: {
- method: "POST",
- params: {
- data: {
- mapTo: "data",
- required: true,
- type: "string | object"
- },
- file: {
- alias: "data",
- deprecated: true,
- type: "string | object"
- },
- headers: {
- required: true,
- type: "object"
- },
- "headers.content-length": {
- required: true,
- type: "integer"
- },
- "headers.content-type": {
- required: true,
- type: "string"
- },
- label: {
- type: "string"
- },
- name: {
- required: true,
- type: "string"
- },
- url: {
- required: true,
- type: "string"
+ }
+ 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);
+ }
}
- },
- url: ":url"
}
- },
- search: {
- code: {
- method: "GET",
- params: {
- order: {
- enum: ["desc", "asc"],
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- q: {
- required: true,
- type: "string"
- },
- sort: {
- enum: ["indexed"],
- type: "string"
+ dfareporting_v3_3.Resource$Dynamictargetingkeys = Resource$Dynamictargetingkeys;
+ class Resource$Eventtags {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/search/code"
- },
- commits: {
- headers: {
- accept: "application/vnd.github.cloak-preview+json"
- },
- method: "GET",
- params: {
- order: {
- enum: ["desc", "asc"],
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- q: {
- required: true,
- type: "string"
- },
- sort: {
- enum: ["author-date", "committer-date"],
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/search/commits"
- },
- issues: {
- deprecated: "octokit.search.issues() has been renamed to octokit.search.issuesAndPullRequests() (2018-12-27)",
- method: "GET",
- params: {
- order: {
- enum: ["desc", "asc"],
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- q: {
- required: true,
- type: "string"
- },
- sort: {
- enum: ["comments", "reactions", "reactions-+1", "reactions--1", "reactions-smile", "reactions-thinking_face", "reactions-heart", "reactions-tada", "interactions", "created", "updated"],
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/search/issues"
- },
- issuesAndPullRequests: {
- method: "GET",
- params: {
- order: {
- enum: ["desc", "asc"],
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- q: {
- required: true,
- type: "string"
- },
- sort: {
- enum: ["comments", "reactions", "reactions-+1", "reactions--1", "reactions-smile", "reactions-thinking_face", "reactions-heart", "reactions-tada", "interactions", "created", "updated"],
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/search/issues"
- },
- labels: {
- method: "GET",
- params: {
- order: {
- enum: ["desc", "asc"],
- type: "string"
- },
- q: {
- required: true,
- type: "string"
- },
- repository_id: {
- required: true,
- type: "integer"
- },
- sort: {
- enum: ["created", "updated"],
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/search/labels"
- },
- repos: {
- method: "GET",
- params: {
- order: {
- enum: ["desc", "asc"],
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- q: {
- required: true,
- type: "string"
- },
- sort: {
- enum: ["stars", "forks", "help-wanted-issues", "updated"],
- type: "string"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/search/repositories"
- },
- topics: {
- method: "GET",
- params: {
- q: {
- required: true,
- type: "string"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/search/topics"
- },
- users: {
- method: "GET",
- params: {
- order: {
- enum: ["desc", "asc"],
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- q: {
- required: true,
- type: "string"
- },
- sort: {
- enum: ["followers", "repositories", "joined"],
- type: "string"
+ }
+ 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);
+ }
}
- },
- url: "/search/users"
}
- },
- teams: {
- addMember: {
- deprecated: "octokit.teams.addMember() has been renamed to octokit.teams.addMemberLegacy() (2020-01-16)",
- method: "PUT",
- params: {
- team_id: {
- required: true,
- type: "integer"
- },
- username: {
- required: true,
- type: "string"
+ dfareporting_v3_3.Resource$Files = Resource$Files;
+ class Resource$Floodlightactivities {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/teams/:team_id/members/:username"
- },
- addMemberLegacy: {
- deprecated: "octokit.teams.addMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy",
- method: "PUT",
- params: {
- team_id: {
- required: true,
- type: "integer"
- },
- username: {
- required: true,
- type: "string"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/members/:username"
- },
- addOrUpdateMembership: {
- deprecated: "octokit.teams.addOrUpdateMembership() has been renamed to octokit.teams.addOrUpdateMembershipLegacy() (2020-01-16)",
- method: "PUT",
- params: {
- role: {
- enum: ["member", "maintainer"],
- type: "string"
- },
- team_id: {
- required: true,
- type: "integer"
- },
- username: {
- required: true,
- type: "string"
+ 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);
+ }
}
- },
- url: "/teams/:team_id/memberships/:username"
- },
- addOrUpdateMembershipInOrg: {
- method: "PUT",
- params: {
- org: {
- required: true,
- type: "string"
- },
- role: {
- enum: ["member", "maintainer"],
- type: "string"
- },
- team_slug: {
- required: true,
- type: "string"
- },
- username: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/orgs/:org/teams/:team_slug/memberships/:username"
- },
- addOrUpdateMembershipLegacy: {
- deprecated: "octokit.teams.addOrUpdateMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy",
- method: "PUT",
- params: {
- role: {
- enum: ["member", "maintainer"],
- type: "string"
- },
- team_id: {
- required: true,
- type: "integer"
- },
- username: {
- required: true,
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/memberships/:username"
- },
- addOrUpdateProject: {
- deprecated: "octokit.teams.addOrUpdateProject() has been renamed to octokit.teams.addOrUpdateProjectLegacy() (2020-01-16)",
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "PUT",
- params: {
- permission: {
- enum: ["read", "write", "admin"],
- type: "string"
- },
- project_id: {
- required: true,
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/projects/:project_id"
- },
- addOrUpdateProjectInOrg: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "PUT",
- params: {
- org: {
- required: true,
- type: "string"
- },
- permission: {
- enum: ["read", "write", "admin"],
- type: "string"
- },
- project_id: {
- required: true,
- type: "integer"
- },
- team_slug: {
- required: true,
- type: "string"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/orgs/:org/teams/:team_slug/projects/:project_id"
- },
- addOrUpdateProjectLegacy: {
- deprecated: "octokit.teams.addOrUpdateProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy",
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "PUT",
- params: {
- permission: {
- enum: ["read", "write", "admin"],
- type: "string"
- },
- project_id: {
- required: true,
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/projects/:project_id"
- },
- addOrUpdateRepo: {
- deprecated: "octokit.teams.addOrUpdateRepo() has been renamed to octokit.teams.addOrUpdateRepoLegacy() (2020-01-16)",
- method: "PUT",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- permission: {
- enum: ["pull", "push", "admin"],
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- team_id: {
- required: true,
- type: "integer"
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/repos/:owner/:repo"
- },
- addOrUpdateRepoInOrg: {
- method: "PUT",
- params: {
- org: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- permission: {
- enum: ["pull", "push", "admin"],
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- team_slug: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"
- },
- addOrUpdateRepoLegacy: {
- deprecated: "octokit.teams.addOrUpdateRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy",
- method: "PUT",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- permission: {
- enum: ["pull", "push", "admin"],
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- team_id: {
- required: true,
- type: "integer"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/repos/:owner/:repo"
- },
- checkManagesRepo: {
- deprecated: "octokit.teams.checkManagesRepo() has been renamed to octokit.teams.checkManagesRepoLegacy() (2020-01-16)",
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- team_id: {
- required: true,
- type: "integer"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/repos/:owner/:repo"
- },
- checkManagesRepoInOrg: {
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- team_slug: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Floodlightactivitygroups = Resource$Floodlightactivitygroups;
+ class Resource$Floodlightconfigurations {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"
- },
- checkManagesRepoLegacy: {
- deprecated: "octokit.teams.checkManagesRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy",
- method: "GET",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- team_id: {
- required: true,
- type: "integer"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/repos/:owner/:repo"
- },
- create: {
- method: "POST",
- params: {
- description: {
- type: "string"
- },
- maintainers: {
- type: "string[]"
- },
- name: {
- required: true,
- type: "string"
- },
- org: {
- required: true,
- type: "string"
- },
- parent_team_id: {
- type: "integer"
- },
- permission: {
- enum: ["pull", "push", "admin"],
- type: "string"
- },
- privacy: {
- enum: ["secret", "closed"],
- type: "string"
- },
- repo_names: {
- type: "string[]"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/orgs/:org/teams"
- },
- createDiscussion: {
- deprecated: "octokit.teams.createDiscussion() has been renamed to octokit.teams.createDiscussionLegacy() (2020-01-16)",
- method: "POST",
- params: {
- body: {
- required: true,
- type: "string"
- },
- private: {
- type: "boolean"
- },
- team_id: {
- required: true,
- type: "integer"
- },
- title: {
- required: true,
- type: "string"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/discussions"
- },
- createDiscussionComment: {
- deprecated: "octokit.teams.createDiscussionComment() has been renamed to octokit.teams.createDiscussionCommentLegacy() (2020-01-16)",
- method: "POST",
- params: {
- body: {
- required: true,
- type: "string"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/discussions/:discussion_number/comments"
- },
- createDiscussionCommentInOrg: {
- method: "POST",
- params: {
- body: {
- required: true,
- type: "string"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- org: {
- required: true,
- type: "string"
- },
- team_slug: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Floodlightconfigurations = Resource$Floodlightconfigurations;
+ class Resource$Inventoryitems {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"
- },
- createDiscussionCommentLegacy: {
- deprecated: "octokit.teams.createDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy",
- method: "POST",
- params: {
- body: {
- required: true,
- type: "string"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/discussions/:discussion_number/comments"
- },
- createDiscussionInOrg: {
- method: "POST",
- params: {
- body: {
- required: true,
- type: "string"
- },
- org: {
- required: true,
- type: "string"
- },
- private: {
- type: "boolean"
- },
- team_slug: {
- required: true,
- type: "string"
- },
- title: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/orgs/:org/teams/:team_slug/discussions"
- },
- createDiscussionLegacy: {
- deprecated: "octokit.teams.createDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy",
- method: "POST",
- params: {
- body: {
- required: true,
- type: "string"
- },
- private: {
- type: "boolean"
- },
- team_id: {
- required: true,
- type: "integer"
- },
- title: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Inventoryitems = Resource$Inventoryitems;
+ class Resource$Languages {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/teams/:team_id/discussions"
- },
- delete: {
- deprecated: "octokit.teams.delete() has been renamed to octokit.teams.deleteLegacy() (2020-01-16)",
- method: "DELETE",
- params: {
- team_id: {
- required: true,
- type: "integer"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id"
- },
- deleteDiscussion: {
- deprecated: "octokit.teams.deleteDiscussion() has been renamed to octokit.teams.deleteDiscussionLegacy() (2020-01-16)",
- method: "DELETE",
- params: {
- discussion_number: {
- required: true,
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ }
+ dfareporting_v3_3.Resource$Languages = Resource$Languages;
+ class Resource$Metros {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/teams/:team_id/discussions/:discussion_number"
- },
- deleteDiscussionComment: {
- deprecated: "octokit.teams.deleteDiscussionComment() has been renamed to octokit.teams.deleteDiscussionCommentLegacy() (2020-01-16)",
- method: "DELETE",
- params: {
- comment_number: {
- required: true,
- type: "integer"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
- },
- deleteDiscussionCommentInOrg: {
- method: "DELETE",
- params: {
- comment_number: {
- required: true,
- type: "integer"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- org: {
- required: true,
- type: "string"
- },
- team_slug: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Metros = Resource$Metros;
+ class Resource$Mobileapps {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"
- },
- deleteDiscussionCommentLegacy: {
- deprecated: "octokit.teams.deleteDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy",
- method: "DELETE",
- params: {
- comment_number: {
- required: true,
- type: "integer"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
- },
- deleteDiscussionInOrg: {
- method: "DELETE",
- params: {
- discussion_number: {
- required: true,
- type: "integer"
- },
- org: {
- required: true,
- type: "string"
- },
- team_slug: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"
- },
- deleteDiscussionLegacy: {
- deprecated: "octokit.teams.deleteDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy",
- method: "DELETE",
- params: {
- discussion_number: {
- required: true,
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ }
+ dfareporting_v3_3.Resource$Mobileapps = Resource$Mobileapps;
+ class Resource$Mobilecarriers {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/teams/:team_id/discussions/:discussion_number"
- },
- deleteInOrg: {
- method: "DELETE",
- params: {
- org: {
- required: true,
- type: "string"
- },
- team_slug: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/orgs/:org/teams/:team_slug"
- },
- deleteLegacy: {
- deprecated: "octokit.teams.deleteLegacy() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy",
- method: "DELETE",
- params: {
- team_id: {
- required: true,
- type: "integer"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id"
- },
- get: {
- deprecated: "octokit.teams.get() has been renamed to octokit.teams.getLegacy() (2020-01-16)",
- method: "GET",
- params: {
- team_id: {
- required: true,
- type: "integer"
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id"
- },
- getByName: {
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
- },
- team_slug: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/orgs/:org/teams/:team_slug"
- },
- getDiscussion: {
- deprecated: "octokit.teams.getDiscussion() has been renamed to octokit.teams.getDiscussionLegacy() (2020-01-16)",
- method: "GET",
- params: {
- discussion_number: {
- required: true,
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ }
+ dfareporting_v3_3.Resource$Operatingsystems = Resource$Operatingsystems;
+ class Resource$Operatingsystemversions {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/teams/:team_id/discussions/:discussion_number"
- },
- getDiscussionComment: {
- deprecated: "octokit.teams.getDiscussionComment() has been renamed to octokit.teams.getDiscussionCommentLegacy() (2020-01-16)",
- method: "GET",
- params: {
- comment_number: {
- required: true,
- type: "integer"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
- },
- getDiscussionCommentInOrg: {
- method: "GET",
- params: {
- comment_number: {
- required: true,
- type: "integer"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- org: {
- required: true,
- type: "string"
- },
- team_slug: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"
- },
- getDiscussionCommentLegacy: {
- deprecated: "octokit.teams.getDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy",
- method: "GET",
- params: {
- comment_number: {
- required: true,
- type: "integer"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ }
+ dfareporting_v3_3.Resource$Operatingsystemversions = Resource$Operatingsystemversions;
+ class Resource$Orderdocuments {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
- },
- getDiscussionInOrg: {
- method: "GET",
- params: {
- discussion_number: {
- required: true,
- type: "integer"
- },
- org: {
- required: true,
- type: "string"
- },
- team_slug: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"
- },
- getDiscussionLegacy: {
- deprecated: "octokit.teams.getDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy",
- method: "GET",
- params: {
- discussion_number: {
- required: true,
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/discussions/:discussion_number"
- },
- getLegacy: {
- deprecated: "octokit.teams.getLegacy() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy",
- method: "GET",
- params: {
- team_id: {
- required: true,
- type: "integer"
+ }
+ dfareporting_v3_3.Resource$Orderdocuments = Resource$Orderdocuments;
+ class Resource$Orders {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/teams/:team_id"
- },
- getMember: {
- deprecated: "octokit.teams.getMember() has been renamed to octokit.teams.getMemberLegacy() (2020-01-16)",
- method: "GET",
- params: {
- team_id: {
- required: true,
- type: "integer"
- },
- username: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/members/:username"
- },
- getMemberLegacy: {
- deprecated: "octokit.teams.getMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy",
- method: "GET",
- params: {
- team_id: {
- required: true,
- type: "integer"
- },
- username: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/members/:username"
- },
- getMembership: {
- deprecated: "octokit.teams.getMembership() has been renamed to octokit.teams.getMembershipLegacy() (2020-01-16)",
- method: "GET",
- params: {
- team_id: {
- required: true,
- type: "integer"
- },
- username: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Orders = Resource$Orders;
+ class Resource$Placementgroups {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/teams/:team_id/memberships/:username"
- },
- getMembershipInOrg: {
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
- },
- team_slug: {
- required: true,
- type: "string"
- },
- username: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/orgs/:org/teams/:team_slug/memberships/:username"
- },
- getMembershipLegacy: {
- deprecated: "octokit.teams.getMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy",
- method: "GET",
- params: {
- team_id: {
- required: true,
- type: "integer"
- },
- username: {
- required: true,
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/memberships/:username"
- },
- list: {
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/orgs/:org/teams"
- },
- listChild: {
- deprecated: "octokit.teams.listChild() has been renamed to octokit.teams.listChildLegacy() (2020-01-16)",
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/teams"
- },
- listChildInOrg: {
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- team_slug: {
- required: true,
- type: "string"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/orgs/:org/teams/:team_slug/teams"
- },
- listChildLegacy: {
- deprecated: "octokit.teams.listChildLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy",
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ }
+ dfareporting_v3_3.Resource$Placementgroups = Resource$Placementgroups;
+ class Resource$Placements {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/teams/:team_id/teams"
- },
- listDiscussionComments: {
- deprecated: "octokit.teams.listDiscussionComments() has been renamed to octokit.teams.listDiscussionCommentsLegacy() (2020-01-16)",
- method: "GET",
- params: {
- direction: {
- enum: ["asc", "desc"],
- type: "string"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ 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);
+ }
}
- },
- url: "/teams/:team_id/discussions/:discussion_number/comments"
- },
- listDiscussionCommentsInOrg: {
- method: "GET",
- params: {
- direction: {
- enum: ["asc", "desc"],
- type: "string"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- org: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- team_slug: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"
- },
- listDiscussionCommentsLegacy: {
- deprecated: "octokit.teams.listDiscussionCommentsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy",
- method: "GET",
- params: {
- direction: {
- enum: ["asc", "desc"],
- type: "string"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/discussions/:discussion_number/comments"
- },
- listDiscussions: {
- deprecated: "octokit.teams.listDiscussions() has been renamed to octokit.teams.listDiscussionsLegacy() (2020-01-16)",
- method: "GET",
- params: {
- direction: {
- enum: ["asc", "desc"],
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/discussions"
- },
- listDiscussionsInOrg: {
- method: "GET",
- params: {
- direction: {
- enum: ["asc", "desc"],
- type: "string"
- },
- org: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- team_slug: {
- required: true,
- type: "string"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/orgs/:org/teams/:team_slug/discussions"
- },
- listDiscussionsLegacy: {
- deprecated: "octokit.teams.listDiscussionsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy",
- method: "GET",
- params: {
- direction: {
- enum: ["asc", "desc"],
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/discussions"
- },
- listForAuthenticatedUser: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ }
+ dfareporting_v3_3.Resource$Placements = Resource$Placements;
+ class Resource$Placementstrategies {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/user/teams"
- },
- listMembers: {
- deprecated: "octokit.teams.listMembers() has been renamed to octokit.teams.listMembersLegacy() (2020-01-16)",
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- role: {
- enum: ["member", "maintainer", "all"],
- type: "string"
- },
- team_id: {
- required: true,
- type: "integer"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/members"
- },
- listMembersInOrg: {
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- role: {
- enum: ["member", "maintainer", "all"],
- type: "string"
- },
- team_slug: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/orgs/:org/teams/:team_slug/members"
- },
- listMembersLegacy: {
- deprecated: "octokit.teams.listMembersLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy",
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- role: {
- enum: ["member", "maintainer", "all"],
- type: "string"
- },
- team_id: {
- required: true,
- type: "integer"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/members"
- },
- listPendingInvitations: {
- deprecated: "octokit.teams.listPendingInvitations() has been renamed to octokit.teams.listPendingInvitationsLegacy() (2020-01-16)",
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/invitations"
- },
- listPendingInvitationsInOrg: {
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- team_slug: {
- required: true,
- type: "string"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/orgs/:org/teams/:team_slug/invitations"
- },
- listPendingInvitationsLegacy: {
- deprecated: "octokit.teams.listPendingInvitationsLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy",
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/invitations"
- },
- listProjects: {
- deprecated: "octokit.teams.listProjects() has been renamed to octokit.teams.listProjectsLegacy() (2020-01-16)",
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ }
+ dfareporting_v3_3.Resource$Placementstrategies = Resource$Placementstrategies;
+ class Resource$Platformtypes {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/teams/:team_id/projects"
- },
- listProjectsInOrg: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- team_slug: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/orgs/:org/teams/:team_slug/projects"
- },
- listProjectsLegacy: {
- deprecated: "octokit.teams.listProjectsLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy",
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/projects"
- },
- listRepos: {
- deprecated: "octokit.teams.listRepos() has been renamed to octokit.teams.listReposLegacy() (2020-01-16)",
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ }
+ dfareporting_v3_3.Resource$Platformtypes = Resource$Platformtypes;
+ class Resource$Postalcodes {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/teams/:team_id/repos"
- },
- listReposInOrg: {
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
- },
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- team_slug: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/orgs/:org/teams/:team_slug/repos"
- },
- listReposLegacy: {
- deprecated: "octokit.teams.listReposLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy",
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/repos"
- },
- removeMember: {
- deprecated: "octokit.teams.removeMember() has been renamed to octokit.teams.removeMemberLegacy() (2020-01-16)",
- method: "DELETE",
- params: {
- team_id: {
- required: true,
- type: "integer"
- },
- username: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Postalcodes = Resource$Postalcodes;
+ class Resource$Projects {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/teams/:team_id/members/:username"
- },
- removeMemberLegacy: {
- deprecated: "octokit.teams.removeMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member-legacy",
- method: "DELETE",
- params: {
- team_id: {
- required: true,
- type: "integer"
- },
- username: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/members/:username"
- },
- removeMembership: {
- deprecated: "octokit.teams.removeMembership() has been renamed to octokit.teams.removeMembershipLegacy() (2020-01-16)",
- method: "DELETE",
- params: {
- team_id: {
- required: true,
- type: "integer"
- },
- username: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/memberships/:username"
- },
- removeMembershipInOrg: {
- method: "DELETE",
- params: {
- org: {
- required: true,
- type: "string"
- },
- team_slug: {
- required: true,
- type: "string"
- },
- username: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Projects = Resource$Projects;
+ class Resource$Regions {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/orgs/:org/teams/:team_slug/memberships/:username"
- },
- removeMembershipLegacy: {
- deprecated: "octokit.teams.removeMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy",
- method: "DELETE",
- params: {
- team_id: {
- required: true,
- type: "integer"
- },
- username: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/memberships/:username"
- },
- removeProject: {
- deprecated: "octokit.teams.removeProject() has been renamed to octokit.teams.removeProjectLegacy() (2020-01-16)",
- method: "DELETE",
- params: {
- project_id: {
- required: true,
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ }
+ dfareporting_v3_3.Resource$Regions = Resource$Regions;
+ class Resource$Remarketinglists {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/teams/:team_id/projects/:project_id"
- },
- removeProjectInOrg: {
- method: "DELETE",
- params: {
- org: {
- required: true,
- type: "string"
- },
- project_id: {
- required: true,
- type: "integer"
- },
- team_slug: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/orgs/:org/teams/:team_slug/projects/:project_id"
- },
- removeProjectLegacy: {
- deprecated: "octokit.teams.removeProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy",
- method: "DELETE",
- params: {
- project_id: {
- required: true,
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/projects/:project_id"
- },
- removeRepo: {
- deprecated: "octokit.teams.removeRepo() has been renamed to octokit.teams.removeRepoLegacy() (2020-01-16)",
- method: "DELETE",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- team_id: {
- required: true,
- type: "integer"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/repos/:owner/:repo"
- },
- removeRepoInOrg: {
- method: "DELETE",
- params: {
- org: {
- required: true,
- type: "string"
- },
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- team_slug: {
- required: true,
- type: "string"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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;
}
- },
- url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"
- },
- removeRepoLegacy: {
- deprecated: "octokit.teams.removeRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy",
- method: "DELETE",
- params: {
- owner: {
- required: true,
- type: "string"
- },
- repo: {
- required: true,
- type: "string"
- },
- team_id: {
- required: true,
- type: "integer"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/repos/:owner/:repo"
- },
- reviewProject: {
- deprecated: "octokit.teams.reviewProject() has been renamed to octokit.teams.reviewProjectLegacy() (2020-01-16)",
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "GET",
- params: {
- project_id: {
- required: true,
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/projects/:project_id"
- },
- reviewProjectInOrg: {
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "GET",
- params: {
- org: {
- required: true,
- type: "string"
- },
- project_id: {
- required: true,
- type: "integer"
- },
- team_slug: {
- required: true,
- type: "string"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/orgs/:org/teams/:team_slug/projects/:project_id"
- },
- reviewProjectLegacy: {
- deprecated: "octokit.teams.reviewProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy",
- headers: {
- accept: "application/vnd.github.inertia-preview+json"
- },
- method: "GET",
- params: {
- project_id: {
- required: true,
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ }
+ 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);
}
- },
- url: "/teams/:team_id/projects/:project_id"
- },
- update: {
- deprecated: "octokit.teams.update() has been renamed to octokit.teams.updateLegacy() (2020-01-16)",
- method: "PATCH",
- params: {
- description: {
- type: "string"
- },
- name: {
- required: true,
- type: "string"
- },
- parent_team_id: {
- type: "integer"
- },
- permission: {
- enum: ["pull", "push", "admin"],
- type: "string"
- },
- privacy: {
- enum: ["secret", "closed"],
- type: "string"
- },
- team_id: {
- required: true,
- type: "integer"
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id"
- },
- updateDiscussion: {
- deprecated: "octokit.teams.updateDiscussion() has been renamed to octokit.teams.updateDiscussionLegacy() (2020-01-16)",
- method: "PATCH",
- params: {
- body: {
- type: "string"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
- },
- title: {
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/discussions/:discussion_number"
- },
- updateDiscussionComment: {
- deprecated: "octokit.teams.updateDiscussionComment() has been renamed to octokit.teams.updateDiscussionCommentLegacy() (2020-01-16)",
- method: "PATCH",
- params: {
- body: {
- required: true,
- type: "string"
- },
- comment_number: {
- required: true,
- type: "integer"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
- },
- updateDiscussionCommentInOrg: {
- method: "PATCH",
- params: {
- body: {
- required: true,
- type: "string"
- },
- comment_number: {
- required: true,
- type: "integer"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- org: {
- required: true,
- type: "string"
- },
- team_slug: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"
- },
- updateDiscussionCommentLegacy: {
- deprecated: "octokit.teams.updateDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy",
- method: "PATCH",
- params: {
- body: {
- required: true,
- type: "string"
- },
- comment_number: {
- required: true,
- type: "integer"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"
- },
- updateDiscussionInOrg: {
- method: "PATCH",
- params: {
- body: {
- type: "string"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- org: {
- required: true,
- type: "string"
- },
- team_slug: {
- required: true,
- type: "string"
- },
- title: {
- type: "string"
+ 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);
+ }
}
- },
- url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"
- },
- updateDiscussionLegacy: {
- deprecated: "octokit.teams.updateDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy",
- method: "PATCH",
- params: {
- body: {
- type: "string"
- },
- discussion_number: {
- required: true,
- type: "integer"
- },
- team_id: {
- required: true,
- type: "integer"
- },
- title: {
- type: "string"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/teams/:team_id/discussions/:discussion_number"
- },
- updateInOrg: {
- method: "PATCH",
- params: {
- description: {
- type: "string"
- },
- name: {
- required: true,
- type: "string"
- },
- org: {
- required: true,
- type: "string"
- },
- parent_team_id: {
- type: "integer"
- },
- permission: {
- enum: ["pull", "push", "admin"],
- type: "string"
- },
- privacy: {
- enum: ["secret", "closed"],
- type: "string"
- },
- team_slug: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Reports = Resource$Reports;
+ class Resource$Reports$Compatiblefields {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/orgs/:org/teams/:team_slug"
- },
- updateLegacy: {
- deprecated: "octokit.teams.updateLegacy() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy",
- method: "PATCH",
- params: {
- description: {
- type: "string"
- },
- name: {
- required: true,
- type: "string"
- },
- parent_team_id: {
- type: "integer"
- },
- permission: {
- enum: ["pull", "push", "admin"],
- type: "string"
- },
- privacy: {
- enum: ["secret", "closed"],
- type: "string"
- },
- team_id: {
- required: true,
- type: "integer"
+ 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);
+ }
}
- },
- url: "/teams/:team_id"
}
- },
- users: {
- addEmails: {
- method: "POST",
- params: {
- emails: {
- required: true,
- type: "string[]"
+ dfareporting_v3_3.Resource$Reports$Compatiblefields = Resource$Reports$Compatiblefields;
+ class Resource$Reports$Files {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/user/emails"
- },
- block: {
- method: "PUT",
- params: {
- username: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/user/blocks/:username"
- },
- checkBlocked: {
- method: "GET",
- params: {
- username: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/user/blocks/:username"
- },
- checkFollowing: {
- method: "GET",
- params: {
- username: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Reports$Files = Resource$Reports$Files;
+ class Resource$Sites {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/user/following/:username"
- },
- checkFollowingForUser: {
- method: "GET",
- params: {
- target_user: {
- required: true,
- type: "string"
- },
- username: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/users/:username/following/:target_user"
- },
- createGpgKey: {
- method: "POST",
- params: {
- armored_public_key: {
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/user/gpg_keys"
- },
- createPublicKey: {
- method: "POST",
- params: {
- key: {
- type: "string"
- },
- title: {
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/user/keys"
- },
- deleteEmails: {
- method: "DELETE",
- params: {
- emails: {
- required: true,
- type: "string[]"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/user/emails"
- },
- deleteGpgKey: {
- method: "DELETE",
- params: {
- gpg_key_id: {
- required: true,
- type: "integer"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/user/gpg_keys/:gpg_key_id"
- },
- deletePublicKey: {
- method: "DELETE",
- params: {
- key_id: {
- required: true,
- type: "integer"
+ }
+ dfareporting_v3_3.Resource$Sizes = Resource$Sizes;
+ class Resource$Subaccounts {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/user/keys/:key_id"
- },
- follow: {
- method: "PUT",
- params: {
- username: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/user/following/:username"
- },
- getAuthenticated: {
- method: "GET",
- params: {},
- url: "/user"
- },
- getByUsername: {
- method: "GET",
- params: {
- username: {
- required: true,
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/users/:username"
- },
- getContextForUser: {
- method: "GET",
- params: {
- subject_id: {
- type: "string"
- },
- subject_type: {
- enum: ["organization", "repository", "issue", "pull_request"],
- type: "string"
- },
- username: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/users/:username/hovercard"
- },
- getGpgKey: {
- method: "GET",
- params: {
- gpg_key_id: {
- required: true,
- type: "integer"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/user/gpg_keys/:gpg_key_id"
- },
- getPublicKey: {
- method: "GET",
- params: {
- key_id: {
- required: true,
- type: "integer"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/user/keys/:key_id"
- },
- list: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- since: {
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Subaccounts = Resource$Subaccounts;
+ class Resource$Targetableremarketinglists {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/users"
- },
- listBlocked: {
- method: "GET",
- params: {},
- url: "/user/blocks"
- },
- listEmails: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/user/emails"
- },
- listFollowersForAuthenticatedUser: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/user/followers"
- },
- listFollowersForUser: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- username: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Targetableremarketinglists = Resource$Targetableremarketinglists;
+ class Resource$Targetingtemplates {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/users/:username/followers"
- },
- listFollowingForAuthenticatedUser: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/user/following"
- },
- listFollowingForUser: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- username: {
- required: true,
- type: "string"
+ insert(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/users/:username/following"
- },
- listGpgKeys: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/user/gpg_keys"
- },
- listGpgKeysForUser: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- username: {
- required: true,
- type: "string"
+ patch(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/users/:username/gpg_keys"
- },
- listPublicEmails: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ update(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/user/public_emails"
- },
- listPublicKeys: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
+ }
+ dfareporting_v3_3.Resource$Targetingtemplates = Resource$Targetingtemplates;
+ class Resource$Userprofiles {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/user/keys"
- },
- listPublicKeysForUser: {
- method: "GET",
- params: {
- page: {
- type: "integer"
- },
- per_page: {
- type: "integer"
- },
- username: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/users/:username/keys"
- },
- togglePrimaryEmailVisibility: {
- method: "PATCH",
- params: {
- email: {
- required: true,
- type: "string"
- },
- visibility: {
- required: true,
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/user/email/visibility"
- },
- unblock: {
- method: "DELETE",
- params: {
- username: {
- required: true,
- type: "string"
+ }
+ dfareporting_v3_3.Resource$Userprofiles = Resource$Userprofiles;
+ class Resource$Userrolepermissiongroups {
+ constructor(context) {
+ this.context = context;
}
- },
- url: "/user/blocks/:username"
- },
- unfollow: {
- method: "DELETE",
- params: {
- username: {
- required: true,
- type: "string"
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/user/following/:username"
- },
- updateAuthenticated: {
- method: "PATCH",
- params: {
- bio: {
- type: "string"
- },
- blog: {
- type: "string"
- },
- company: {
- type: "string"
- },
- email: {
- type: "string"
- },
- hireable: {
- type: "boolean"
- },
- location: {
- type: "string"
- },
- name: {
- type: "string"
+ list(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback ||
+ {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
- },
- url: "/user"
}
- }
-};
-
-const VERSION = "2.4.0";
-
-function registerEndpoints(octokit, routes) {
- Object.keys(routes).forEach(namespaceName => {
- if (!octokit[namespaceName]) {
- octokit[namespaceName] = {};
+ 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);
+ }
+ }
}
-
- Object.keys(routes[namespaceName]).forEach(apiName => {
- const apiOptions = routes[namespaceName][apiName];
- const endpointDefaults = ["method", "url", "headers"].reduce((map, key) => {
- if (typeof apiOptions[key] !== "undefined") {
- map[key] = apiOptions[key];
+ dfareporting_v3_3.Resource$Userrolepermissions = Resource$Userrolepermissions;
+ class Resource$Userroles {
+ constructor(context) {
+ this.context = context;
}
-
- return map;
- }, {});
- endpointDefaults.request = {
- validate: apiOptions.params
- };
- let request = octokit.request.defaults(endpointDefaults); // patch request & endpoint methods to support deprecated parameters.
- // Not the most elegant solution, but we don’t want to move deprecation
- // logic into octokit/endpoint.js as it’s out of scope
-
- const hasDeprecatedParam = Object.keys(apiOptions.params || {}).find(key => apiOptions.params[key].deprecated);
-
- if (hasDeprecatedParam) {
- const patch = patchForDeprecation.bind(null, octokit, apiOptions);
- request = patch(octokit.request.defaults(endpointDefaults), `.${namespaceName}.${apiName}()`);
- request.endpoint = patch(request.endpoint, `.${namespaceName}.${apiName}.endpoint()`);
- request.endpoint.merge = patch(request.endpoint.merge, `.${namespaceName}.${apiName}.endpoint.merge()`);
- }
-
- if (apiOptions.deprecated) {
- octokit[namespaceName][apiName] = Object.assign(function deprecatedEndpointMethod() {
- octokit.log.warn(new deprecation.Deprecation(`[@octokit/rest] ${apiOptions.deprecated}`));
- octokit[namespaceName][apiName] = request;
- return request.apply(null, arguments);
- }, request);
- return;
- }
-
- octokit[namespaceName][apiName] = request;
- });
- });
-}
-
-function patchForDeprecation(octokit, apiOptions, method, methodName) {
- const patchedMethod = options => {
- options = Object.assign({}, options);
- Object.keys(options).forEach(key => {
- if (apiOptions.params[key] && apiOptions.params[key].deprecated) {
- const aliasKey = apiOptions.params[key].alias;
- octokit.log.warn(new deprecation.Deprecation(`[@octokit/rest] "${key}" parameter is deprecated for "${methodName}". Use "${aliasKey}" instead`));
-
- if (!(aliasKey in options)) {
- options[aliasKey] = options[key];
+ delete(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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);
+ }
}
-
- delete options[key];
- }
- });
- return method(options);
- };
-
- Object.keys(method).forEach(key => {
- patchedMethod[key] = method[key];
- });
- return patchedMethod;
-}
-
-/**
- * This plugin is a 1:1 copy of internal @octokit/rest plugins. The primary
- * goal is to rebuild @octokit/rest on top of @octokit/core. Once that is
- * done, we will remove the registerEndpoints methods and return the methods
- * directly as with the other plugins. At that point we will also remove the
- * legacy workarounds and deprecations.
- *
- * See the plan at
- * https://github.com/octokit/plugin-rest-endpoint-methods.js/pull/1
- */
-
-function restEndpointMethods(octokit) {
- // @ts-ignore
- octokit.registerEndpoints = registerEndpoints.bind(null, octokit);
- registerEndpoints(octokit, endpointsByScope); // Aliasing scopes for backward compatibility
- // See https://github.com/octokit/rest.js/pull/1134
-
- [["gitdata", "git"], ["authorization", "oauthAuthorizations"], ["pullRequests", "pulls"]].forEach(([deprecatedScope, scope]) => {
- Object.defineProperty(octokit, deprecatedScope, {
- get() {
- octokit.log.warn( // @ts-ignore
- new deprecation.Deprecation(`[@octokit/plugin-rest-endpoint-methods] "octokit.${deprecatedScope}.*" methods are deprecated, use "octokit.${scope}.*" instead`)); // @ts-ignore
-
- return octokit[scope];
- }
-
- });
- });
- return {};
-}
-restEndpointMethods.VERSION = VERSION;
-
-exports.restEndpointMethods = restEndpointMethods;
-//# sourceMappingURL=index.js.map
-
+ get(paramsOrCallback, optionsOrCallback, callback) {
+ let params = (paramsOrCallback || {});
+ let options = (optionsOrCallback || {});
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {};
+ options = {};
+ }
+ 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
/***/ }),
+/* 960 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
-/***/ 850:
-/***/ (function(module, __unusedexports, __webpack_require__) {
-
-module.exports = paginationMethodsPlugin
+"use strict";
-function paginationMethodsPlugin (octokit) {
- octokit.getFirstPage = __webpack_require__(777).bind(null, octokit)
- octokit.getLastPage = __webpack_require__(649).bind(null, octokit)
- octokit.getNextPage = __webpack_require__(550).bind(null, octokit)
- octokit.getPreviousPage = __webpack_require__(563).bind(null, octokit)
- octokit.hasFirstPage = __webpack_require__(536)
- octokit.hasLastPage = __webpack_require__(336)
- octokit.hasNextPage = __webpack_require__(929)
- octokit.hasPreviousPage = __webpack_require__(558)
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(477);
+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
/***/ }),
-
-/***/ 854:
-/***/ (function(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 `TypeError` message for "Functions" methods. */
-var FUNC_ERROR_TEXT = 'Expected a function';
-
-/** 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;
-
-/** `Object#toString` result references. */
-var funcTag = '[object Function]',
- genTag = '[object GeneratorFunction]',
- symbolTag = '[object Symbol]';
-
-/** Used to match property names within property paths. */
-var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
- reIsPlainProp = /^\w*$/,
- reLeadingDot = /^\./,
- rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
-
-/**
- * Used to match `RegExp`
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
- */
-var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
-
-/** Used to match backslashes in property paths. */
-var reEscapeChar = /\\(\\)?/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')();
-
-/**
- * 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,
- splice = arrayProto.splice;
-
-/* Built-in method references that are verified to be native. */
-var Map = getNative(root, 'Map'),
- nativeCreate = getNative(Object, 'create');
-
-/** Used to convert symbols to primitives and strings. */
-var symbolProto = Symbol ? Symbol.prototype : undefined,
- symbolToString = symbolProto ? symbolProto.toString : undefined;
-
-/**
- * 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;
-
-/**
- * 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;
+/* 961 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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);
+ }
+ }
}
- }
- return -1;
-}
-
-/**
- * The base implementation of `_.get` without support for default values.
- *
- * @private
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the property to get.
- * @returns {*} Returns the resolved value.
- */
-function baseGet(object, path) {
- path = isKey(path, object) ? [path] : castPath(path);
-
- var index = 0,
- length = path.length;
+ 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
- while (object != null && index < length) {
- object = object[toKey(path[index++])];
- }
- return (index && index == length) ? object : undefined;
-}
+/***/ }),
+/* 962 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
-/**
- * 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));
-}
+"use strict";
-/**
- * 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 (isSymbol(value)) {
- return symbolToString ? symbolToString.call(value) : '';
- }
- var result = (value + '');
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(532);
+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
-/**
- * Casts `value` to a path array if it's not one.
- *
- * @private
- * @param {*} value The value to inspect.
- * @returns {Array} Returns the cast property path array.
- */
-function castPath(value) {
- return isArray(value) ? value : stringToPath(value);
-}
+/***/ }),
+/* 963 */,
+/* 964 */,
+/* 965 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
-/**
- * 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;
-}
+"use strict";
-/**
- * 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;
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(858);
+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
-/**
- * Checks if `value` is a property name and not a property path.
- *
- * @private
- * @param {*} value The value to check.
- * @param {Object} [object] The object to query keys on.
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
- */
-function isKey(value, object) {
- if (isArray(value)) {
- return false;
- }
- var type = typeof value;
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
- value == null || isSymbol(value)) {
- return true;
- }
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
- (object != null && value in Object(object));
-}
+/***/ }),
+/* 966 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
-/**
- * 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);
-}
+"use strict";
-/**
- * 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);
-}
+const {PassThrough} = __webpack_require__(413);
-/**
- * Converts `string` to a property path array.
- *
- * @private
- * @param {string} string The string to convert.
- * @returns {Array} Returns the property path array.
- */
-var stringToPath = memoize(function(string) {
- string = toString(string);
+module.exports = options => {
+ options = Object.assign({}, options);
- var result = [];
- if (reLeadingDot.test(string)) {
- result.push('');
- }
- string.replace(rePropName, function(match, number, quote, string) {
- result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
- });
- return result;
-});
+ const {array} = options;
+ let {encoding} = options;
+ const buffer = encoding === 'buffer';
+ let objectMode = false;
-/**
- * Converts `value` to a string key if it's not a string or symbol.
- *
- * @private
- * @param {*} value The value to inspect.
- * @returns {string|symbol} Returns the key.
- */
-function toKey(value) {
- if (typeof value == 'string' || isSymbol(value)) {
- return value;
- }
- var result = (value + '');
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
-}
+ if (array) {
+ objectMode = !(encoding || buffer);
+ } else {
+ encoding = encoding || 'utf8';
+ }
-/**
- * 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 '';
-}
+ if (buffer) {
+ encoding = null;
+ }
-/**
- * Creates a function that memoizes the result of `func`. If `resolver` is
- * provided, it determines the cache key for storing the result based on the
- * arguments provided to the memoized function. By default, the first argument
- * provided to the memoized function is used as the map cache key. The `func`
- * is invoked with the `this` binding of the memoized function.
- *
- * **Note:** The cache is exposed as the `cache` property on the memoized
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
- * constructor with one whose instances implement the
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
- * method interface of `delete`, `get`, `has`, and `set`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to have its output memoized.
- * @param {Function} [resolver] The function to resolve the cache key.
- * @returns {Function} Returns the new memoized function.
- * @example
- *
- * var object = { 'a': 1, 'b': 2 };
- * var other = { 'c': 3, 'd': 4 };
- *
- * var values = _.memoize(_.values);
- * values(object);
- * // => [1, 2]
- *
- * values(other);
- * // => [3, 4]
- *
- * object.a = 2;
- * values(object);
- * // => [1, 2]
- *
- * // Modify the result cache.
- * values.cache.set(object, ['a', 'b']);
- * values(object);
- * // => ['a', 'b']
- *
- * // Replace `_.memoize.Cache`.
- * _.memoize.Cache = WeakMap;
- */
-function memoize(func, resolver) {
- if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {
- throw new TypeError(FUNC_ERROR_TEXT);
- }
- var memoized = function() {
- var args = arguments,
- key = resolver ? resolver.apply(this, args) : args[0],
- cache = memoized.cache;
+ let len = 0;
+ const ret = [];
+ const stream = new PassThrough({objectMode});
- if (cache.has(key)) {
- return cache.get(key);
- }
- var result = func.apply(this, args);
- memoized.cache = cache.set(key, result);
- return result;
- };
- memoized.cache = new (memoize.Cache || MapCache);
- return memoized;
-}
+ if (encoding) {
+ stream.setEncoding(encoding);
+ }
-// Assign cache to `_.memoize`.
-memoize.Cache = MapCache;
+ stream.on('data', chunk => {
+ ret.push(chunk);
-/**
- * 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);
+ if (objectMode) {
+ len = ret.length;
+ } else {
+ len += chunk.length;
+ }
+ });
+
+ stream.getBufferedValue = () => {
+ if (array) {
+ return ret;
+ }
+
+ return buffer ? Buffer.concat(ret, len) : ret.join('');
+ };
+
+ stream.getBufferedLength = () => len;
+
+ return stream;
+};
+
+
+/***/ }),
+/* 967 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(112);
+const v1beta1_1 = __webpack_require__(735);
+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
-/**
- * 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;
+/***/ }),
+/* 968 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
-/**
- * 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;
-}
+/***/ }),
+/* 969 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
-/**
- * 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');
-}
+var wrappy = __webpack_require__(11)
+module.exports = wrappy(once)
+module.exports.strict = wrappy(onceStrict)
-/**
- * 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';
-}
+once.proto = once(function () {
+ Object.defineProperty(Function.prototype, 'once', {
+ value: function () {
+ return once(this)
+ },
+ configurable: true
+ })
-/**
- * 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) && objectToString.call(value) == symbolTag);
-}
+ Object.defineProperty(Function.prototype, 'onceStrict', {
+ value: function () {
+ return onceStrict(this)
+ },
+ configurable: true
+ })
+})
-/**
- * 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 process.
- * @returns {string} Returns the string.
- * @example
- *
- * _.toString(null);
- * // => ''
- *
- * _.toString(-0);
- * // => '-0'
- *
- * _.toString([1, 2, 3]);
- * // => '1,2,3'
- */
-function toString(value) {
- return value == null ? '' : baseToString(value);
+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
}
-/**
- * Gets the value at `path` of `object`. If the resolved value is
- * `undefined`, the `defaultValue` is returned in its place.
- *
- * @static
- * @memberOf _
- * @since 3.7.0
- * @category Object
- * @param {Object} object The object to query.
- * @param {Array|string} path The path of the property to get.
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
- * @returns {*} Returns the resolved value.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
- *
- * _.get(object, 'a[0].b.c');
- * // => 3
- *
- * _.get(object, ['a', '0', 'b', 'c']);
- * // => 3
- *
- * _.get(object, 'a.b.c', 'default');
- * // => 'default'
- */
-function get(object, path, defaultValue) {
- var result = object == null ? undefined : baseGet(object, path);
- return result === undefined ? defaultValue : result;
+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
}
-module.exports = get;
-
/***/ }),
+/* 970 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
-/***/ 856:
-/***/ (function(module, __unusedexports, __webpack_require__) {
-
-module.exports = __webpack_require__(141);
+"use strict";
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v1_1 = __webpack_require__(794);
+const v1alpha2_1 = __webpack_require__(307);
+const v1beta1_1 = __webpack_require__(237);
+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
/***/ }),
+/* 971 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
-/***/ 861:
-/***/ (function(module, __unusedexports, __webpack_require__) {
+"use strict";
-module.exports = registerPlugin;
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v2_1 = __webpack_require__(620);
+const v3_1 = __webpack_require__(378);
+const v3beta1_1 = __webpack_require__(496);
+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
-const factory = __webpack_require__(513);
+/***/ }),
+/* 972 */,
+/* 973 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
-function registerPlugin(plugins, pluginFunction) {
- return factory(
- plugins.includes(pluginFunction) ? plugins : plugins.concat(pluginFunction)
- );
-}
+"use strict";
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
/***/ }),
-
-/***/ 862:
+/* 974 */
/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
-
-Object.defineProperty(exports, '__esModule', { value: true });
-
-function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
-
-var osName = _interopDefault(__webpack_require__(2));
-
-function getUserAgent() {
- try {
- return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`;
- } catch (error) {
- if (/wmic os get Caption/.test(error.message)) {
- return "Windows ";
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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);
+ }
}
-
- throw error;
- }
-}
-
-exports.getUserAgent = getUserAgent;
-//# sourceMappingURL=index.js.map
-
+ 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
/***/ }),
-
-/***/ 866:
-/***/ (function(module, __unusedexports, __webpack_require__) {
+/* 975 */,
+/* 976 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
-var shebangRegex = __webpack_require__(816);
-
-module.exports = function (str) {
- var match = str.match(shebangRegex);
-
- if (!match) {
- return null;
- }
-
- var arr = match[0].replace(/#! ?/, '').split(' ');
- var bin = arr[0].split('/').pop();
- var arg = arr[1];
-
- return (bin === 'env' ?
- arg :
- bin + (arg ? ' ' + arg : '')
- );
-};
-
-
-/***/ }),
-
-/***/ 881:
-/***/ (function(module) {
-"use strict";
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = _default;
+exports.URL = exports.DNS = void 0;
+var _bytesToUuid = _interopRequireDefault(__webpack_require__(450));
-const isWin = process.platform === 'win32';
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-function notFoundError(original, syscall) {
- return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
- code: 'ENOENT',
- errno: 'ENOENT',
- syscall: `${syscall} ${original.command}`,
- path: original.command,
- spawnargs: original.args,
- });
+function uuidToBytes(uuid) {
+ // Note: We assume we're being passed a valid uuid string
+ var bytes = [];
+ uuid.replace(/[a-fA-F0-9]{2}/g, function (hex) {
+ bytes.push(parseInt(hex, 16));
+ });
+ return bytes;
}
-function hookChildProcess(cp, parsed) {
- if (!isWin) {
- return;
- }
-
- const originalEmit = cp.emit;
+function stringToBytes(str) {
+ str = unescape(encodeURIComponent(str)); // UTF8 escape
- cp.emit = function (name, arg1) {
- // If emitting "exit" event and exit code is 1, we need to check if
- // the command exists and emit an "error" instead
- // See https://github.com/IndigoUnited/node-cross-spawn/issues/16
- if (name === 'exit') {
- const err = verifyENOENT(arg1, parsed, 'spawn');
+ var bytes = new Array(str.length);
- if (err) {
- return originalEmit.call(cp, 'error', err);
- }
- }
+ for (var i = 0; i < str.length; i++) {
+ bytes[i] = str.charCodeAt(i);
+ }
- return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params
- };
+ return bytes;
}
-function verifyENOENT(status, parsed) {
- if (isWin && status === 1 && !parsed.file) {
- return notFoundError(parsed.original, 'spawn');
+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) {
+ var generateUUID = function (value, namespace, buf, offset) {
+ var 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
+
+ var bytes = hashfunc(namespace.concat(value));
+ bytes[6] = bytes[6] & 0x0f | version;
+ bytes[8] = bytes[8] & 0x3f | 0x80;
+
+ if (buf) {
+ for (var idx = 0; idx < 16; ++idx) {
+ buf[off + idx] = bytes[idx];
+ }
}
- return null;
-}
+ return buf || (0, _bytesToUuid.default)(bytes);
+ }; // Function#name is not settable on some platforms (#270)
-function verifyENOENTSync(status, parsed) {
- if (isWin && status === 1 && !parsed.file) {
- return notFoundError(parsed.original, 'spawnSync');
- }
- return null;
-}
+ try {
+ generateUUID.name = name;
+ } catch (err) {} // For CommonJS default export support
-module.exports = {
- hookChildProcess,
- verifyENOENT,
- verifyENOENTSync,
- notFoundError,
-};
+ generateUUID.DNS = DNS;
+ generateUUID.URL = URL;
+ return generateUUID;
+}
/***/ }),
-
-/***/ 883:
-/***/ (function(module) {
+/* 977 */,
+/* 978 */,
+/* 979 */,
+/* 980 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
/**
- * 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
+ * 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.
*/
-
-/** Used as the `TypeError` message for "Functions" methods. */
-var FUNC_ERROR_TEXT = 'Expected a function';
-
-/** 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 funcTag = '[object Function]',
- genTag = '[object GeneratorFunction]',
- symbolTag = '[object Symbol]';
-
-/** Used to match property names within property paths. */
-var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
- reIsPlainProp = /^\w*$/,
- reLeadingDot = /^\./,
- rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
+var forge = __webpack_require__(985);
+__webpack_require__(220);
+__webpack_require__(937);
+__webpack_require__(121);
+__webpack_require__(650);
+__webpack_require__(648);
+__webpack_require__(443);
+__webpack_require__(275);
+__webpack_require__(165);
+__webpack_require__(66);
+
+// shortcut for ASN.1 API
+var asn1 = forge.asn1;
+
+// shortcut for PKCS#7 API
+var p7 = module.exports = forge.pkcs7 = forge.pkcs7 || {};
/**
- * Used to match `RegExp`
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
+ * Converts a PKCS#7 message from PEM format.
+ *
+ * @param pem the PEM-formatted PKCS#7 message.
+ *
+ * @return the PKCS#7 message.
*/
-var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
-
-/** Used to match backslashes in property paths. */
-var reEscapeChar = /\\(\\)?/g;
-
-/** Used to detect host constructors (Safari). */
-var reIsHostCtor = /^\[object .+?Constructor\]$/;
-
-/** Used to detect unsigned integer values. */
-var reIsUint = /^(?:0|[1-9]\d*)$/;
+p7.messageFromPem = function(pem) {
+ var msg = forge.pem.decode(pem)[0];
-/** Detect free variable `global` from Node.js. */
-var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
+ 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.');
+ }
-/** Detect free variable `self`. */
-var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
+ // convert DER to ASN.1 object
+ var obj = asn1.fromDer(msg.body);
-/** Used as a reference to the global object. */
-var root = freeGlobal || freeSelf || Function('return this')();
+ return p7.messageFromAsn1(obj);
+};
/**
- * Gets the value at `key` of `object`.
+ * Converts a PKCS#7 message to PEM format.
*
- * @private
- * @param {Object} [object] The object to query.
- * @param {string} key The key of the property to get.
- * @returns {*} Returns the property value.
+ * @param msg The PKCS#7 message object
+ * @param maxline The maximum characters per line, defaults to 64.
+ *
+ * @return The PEM-formatted PKCS#7 message.
*/
-function getValue(object, key) {
- return object == null ? undefined : object[key];
-}
+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});
+};
/**
- * Checks if `value` is a host object in IE < 9.
+ * Converts a PKCS#7 message from an ASN.1 object.
*
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
+ * @param obj the ASN.1 representation of a ContentInfo.
+ *
+ * @return the PKCS#7 message.
*/
-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) {}
+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;
}
- return result;
-}
-/** Used for built-in method references. */
-var arrayProto = Array.prototype,
- funcProto = Function.prototype,
- objectProto = Object.prototype;
+ var contentType = asn1.derToOid(capture.contentType);
+ var msg;
-/** Used to detect overreaching core-js shims. */
-var coreJsData = root['__core-js_shared__'];
+ switch(contentType) {
+ case forge.pki.oids.envelopedData:
+ msg = p7.createEnvelopedData();
+ break;
-/** 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) : '';
-}());
+ case forge.pki.oids.encryptedData:
+ msg = p7.createEncryptedData();
+ break;
-/** Used to resolve the decompiled source of functions. */
-var funcToString = funcProto.toString;
+ case forge.pki.oids.signedData:
+ msg = p7.createSignedData();
+ break;
-/** Used to check objects for own properties. */
-var hasOwnProperty = objectProto.hasOwnProperty;
+ default:
+ throw new Error('Cannot read PKCS#7 message. ContentType with OID ' +
+ contentType + ' is not (yet) supported.');
+ }
-/**
- * Used to resolve the
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
- * of values.
- */
-var objectToString = objectProto.toString;
+ msg.fromAsn1(capture.content.value[0]);
+ return msg;
+};
-/** Used to detect if a method is native. */
-var reIsNative = RegExp('^' +
- funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
-);
+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]));
+ }
+ }
-/** Built-in value references. */
-var Symbol = root.Symbol,
- splice = arrayProto.splice;
+ // TODO: parse crls
+ },
-/* Built-in method references that are verified to be native. */
-var Map = getNative(root, 'Map'),
- nativeCreate = getNative(Object, 'create');
+ toAsn1: function() {
+ // degenerate case with no content
+ if(!msg.contentInfo) {
+ msg.sign();
+ }
-/** Used to convert symbols to primitives and strings. */
-var symbolProto = Symbol ? Symbol.prototype : undefined,
- symbolToString = symbolProto ? symbolProto.toString : undefined;
+ var certs = [];
+ for(var i = 0; i < msg.certificates.length; ++i) {
+ certs.push(forge.pki.certificateToAsn1(msg.certificates[i]));
+ }
-/**
- * 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;
+ 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
+ ]);
+ },
- this.clear();
- while (++index < length) {
- var entry = entries[index];
- this.set(entry[0], entry[1]);
- }
-}
+ /**
+ * 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);
+ }
-/**
- * Removes all key-value entries from the hash.
- *
- * @private
- * @name clear
- * @memberOf Hash
- */
-function hashClear() {
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
-}
+ // 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);
+ }
-/**
- * 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];
-}
+ // 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;
+ }
+ }
-/**
- * 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;
-}
+ 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.');
+ }
+ }
-/**
- * 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);
-}
+ msg.signers.push({
+ key: key,
+ version: 1,
+ issuer: issuer,
+ serialNumber: serialNumber,
+ digestAlgorithm: digestAlgorithm,
+ signatureAlgorithm: forge.pki.oids.rsaEncryption,
+ signature: null,
+ authenticatedAttributes: authenticatedAttributes,
+ unauthenticatedAttributes: []
+ });
+ },
-/**
- * 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;
-}
+ /**
+ * 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);
+ }
-// Add methods to `Hash`.
-Hash.prototype.clear = hashClear;
-Hash.prototype['delete'] = hashDelete;
-Hash.prototype.get = hashGet;
-Hash.prototype.has = hashHas;
-Hash.prototype.set = hashSet;
+ 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)
+ ]));
+ }
+ }
+ }
-/**
- * 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;
+ // no signers, return early (degenerate case for certificate container)
+ if(msg.signers.length === 0) {
+ return;
+ }
- this.clear();
- while (++index < length) {
- var entry = entries[index];
- this.set(entry[0], entry[1]);
- }
-}
+ // generate digest algorithm identifiers
+ var mds = addDigestAlgorithmIds();
-/**
- * Removes all key-value entries from the list cache.
- *
- * @private
- * @name clear
- * @memberOf ListCache
- */
-function listCacheClear() {
- this.__data__ = [];
-}
+ // generate signerInfos
+ addSignerInfos(mds);
+ },
-/**
- * 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);
+ verify: function() {
+ throw new Error('PKCS#7 signature verification not yet implemented.');
+ },
- if (index < 0) {
- return false;
- }
- var lastIndex = data.length - 1;
- if (index == lastIndex) {
- data.pop();
- } else {
- splice.call(data, index, 1);
- }
- return true;
-}
+ /**
+ * 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);
+ },
-/**
- * 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);
+ /**
+ * 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;
- return index < 0 ? undefined : data[index][1];
-}
+ function addDigestAlgorithmIds() {
+ var mds = {};
-/**
- * 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;
-}
+ 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();
+ }
+ }
-/**
- * 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);
+ // 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, '')
+ ]));
+ }
- if (index < 0) {
- data.push([key, value]);
- } else {
- data[index][1] = value;
+ return mds;
}
- 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;
+ function addSignerInfos(mds) {
+ var content;
-/**
- * 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;
+ 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];
+ }
- this.clear();
- while (++index < length) {
- var entry = entries[index];
- this.set(entry[0], entry[1]);
- }
-}
+ if(!content) {
+ throw new Error(
+ 'Could not sign PKCS#7 message; there is no content to sign.');
+ }
-/**
- * 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
- };
-}
+ // get ContentInfo content type
+ var contentType = asn1.derToOid(msg.contentInfo.value[0].value);
-/**
- * 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);
-}
+ // serialize content
+ var bytes = asn1.toDer(content);
-/**
- * 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);
-}
+ // 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();
-/**
- * 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);
-}
+ // digest content DER value bytes
+ for(var oid in mds) {
+ mds[oid].start().update(bytes);
+ }
-/**
- * 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;
-}
+ // 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;
+ }
+ }
-// Add methods to `MapCache`.
-MapCache.prototype.clear = mapCacheClear;
-MapCache.prototype['delete'] = mapCacheDelete;
-MapCache.prototype.get = mapCacheGet;
-MapCache.prototype.has = mapCacheHas;
-MapCache.prototype.set = mapCacheSet;
+ // 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));
+ }
-/**
- * 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;
- }
-}
+ // DER-serialize and digest SET OF attributes only
+ bytes = asn1.toDer(attrsAsn1).getBytes();
+ signer.md.start().update(bytes);
+ }
-/**
- * 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;
+ // sign digest
+ signer.signature = signer.key.sign(signer.md, 'RSASSA-PKCS1-V1_5');
}
+
+ // add signer info
+ msg.signerInfos = _signersToAsn1(msg.signers);
}
- return -1;
-}
+};
/**
- * The base implementation of `_.isNative` without bad shim checks.
+ * Creates an empty PKCS#7 message of type EncryptedData.
*
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is a native function,
- * else `false`.
+ * @return the message.
*/
-function baseIsNative(value) {
- if (!isObject(value) || isMasked(value)) {
- return false;
- }
- var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
- return pattern.test(toSource(value));
-}
+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;
+};
/**
- * The base implementation of `_.set`.
+ * Creates an empty PKCS#7 message of type EnvelopedData.
*
- * @private
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to set.
- * @param {*} value The value to set.
- * @param {Function} [customizer] The function to customize path creation.
- * @returns {Object} Returns `object`.
+ * @return the message.
*/
-function baseSet(object, path, value, customizer) {
- if (!isObject(object)) {
- return object;
- }
- path = isKey(path, object) ? [path] : castPath(path);
+p7.createEnvelopedData = function() {
+ var msg = null;
+ msg = {
+ type: forge.pki.oids.envelopedData,
+ version: 0,
+ recipients: [],
+ encryptedContent: {
+ algorithm: forge.pki.oids['aes256-CBC']
+ },
- var index = -1,
- length = path.length,
- lastIndex = length - 1,
- nested = object;
+ /**
+ * 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);
+ },
- while (nested != null && ++index < length) {
- var key = toKey(path[index]),
- newValue = 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))
+ ])
+ ])
+ ]);
+ },
- if (index != lastIndex) {
- var objValue = nested[key];
- newValue = customizer ? customizer(objValue, key, nested) : undefined;
- if (newValue === undefined) {
- newValue = isObject(objValue)
- ? objValue
- : (isIndex(path[index + 1]) ? [] : {});
+ /**
+ * 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);
+ }
}
}
- assignValue(nested, key, newValue);
- nested = nested[key];
- }
- return object;
-}
+ };
+ return msg;
+};
/**
- * The base implementation of `_.toString` which doesn't convert nullish
- * values to empty strings.
+ * Converts a single recipient from an ASN.1 object.
*
- * @private
- * @param {*} value The value to process.
- * @returns {string} Returns the string.
+ * @param obj the ASN.1 RecipientInfo.
+ *
+ * @return the recipient object.
*/
-function baseToString(value) {
- // Exit early for strings to avoid a performance hit in some environments.
- if (typeof value == 'string') {
- return value;
- }
- if (isSymbol(value)) {
- return symbolToString ? symbolToString.call(value) : '';
+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;
}
- var result = (value + '');
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
+
+ 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
+ }
+ };
}
/**
- * Casts `value` to a path array if it's not one.
+ * Converts a single recipient object to an ASN.1 object.
*
- * @private
- * @param {*} value The value to inspect.
- * @returns {Array} Returns the cast property path array.
+ * @param obj the recipient object.
+ *
+ * @return the ASN.1 RecipientInfo.
*/
-function castPath(value) {
- return isArray(value) ? value : stringToPath(value);
+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)
+ ]);
}
/**
- * Gets the data for `map`.
+ * Map a set of RecipientInfo ASN.1 objects to recipient objects.
*
- * @private
- * @param {Object} map The map to query.
- * @param {string} key The reference key.
- * @returns {*} Returns the map data.
+ * @param infos an array of ASN.1 representations RecipientInfo (i.e. SET OF).
+ *
+ * @return an array of recipient objects.
*/
-function getMapData(map, key) {
- var data = map.__data__;
- return isKeyable(key)
- ? data[typeof key == 'string' ? 'string' : 'hash']
- : data.map;
+function _recipientsFromAsn1(infos) {
+ var ret = [];
+ for(var i = 0; i < infos.length; ++i) {
+ ret.push(_recipientFromAsn1(infos[i]));
+ }
+ return ret;
}
/**
- * Gets the native function at `key` of `object`.
+ * Map an array of recipient objects to ASN.1 RecipientInfo objects.
*
- * @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`.
+ * @param recipients an array of recipientInfo objects.
+ *
+ * @return an array of ASN.1 RecipientInfos.
*/
-function getNative(object, key) {
- var value = getValue(object, key);
- return baseIsNative(value) ? value : undefined;
+function _recipientsToAsn1(recipients) {
+ var ret = [];
+ for(var i = 0; i < recipients.length; ++i) {
+ ret.push(_recipientToAsn1(recipients[i]));
+ }
+ return ret;
}
/**
- * Checks if `value` is a valid array-like index.
+ * Converts a single signer from an ASN.1 object.
*
- * @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`.
+ * @param obj the ASN.1 representation of a SignerInfo.
+ *
+ * @return the signer object.
*/
-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);
+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;
}
/**
- * Checks if `value` is a property name and not a property path.
+ * Converts a single signerInfo object to an ASN.1 object.
*
- * @private
- * @param {*} value The value to check.
- * @param {Object} [object] The object to query keys on.
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
+ * @param obj the signerInfo object.
+ *
+ * @return the ASN.1 representation of a SignerInfo.
*/
-function isKey(value, object) {
- if (isArray(value)) {
- return false;
+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);
}
- var type = typeof value;
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
- value == null || isSymbol(value)) {
- return true;
+
+ // 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 reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
- (object != null && value in Object(object));
+
+ return rval;
}
/**
- * Checks if `value` is suitable for use as unique object key.
+ * Map a set of SignerInfo ASN.1 objects to an array of signer objects.
*
- * @private
- * @param {*} value The value to check.
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
+ * @param signerInfoAsn1s an array of ASN.1 SignerInfos (i.e. SET OF).
+ *
+ * @return an array of signers objects.
*/
-function isKeyable(value) {
- var type = typeof value;
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
- ? (value !== '__proto__')
- : (value === null);
+function _signersFromAsn1(signerInfoAsn1s) {
+ var ret = [];
+ for(var i = 0; i < signerInfoAsn1s.length; ++i) {
+ ret.push(_signerFromAsn1(signerInfoAsn1s[i]));
+ }
+ return ret;
}
/**
- * Checks if `func` has its source masked.
+ * Map an array of signer objects to ASN.1 objects.
*
- * @private
- * @param {Function} func The function to check.
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
+ * @param signers an array of signer objects.
+ *
+ * @return an array of ASN.1 SignerInfos.
*/
-function isMasked(func) {
- return !!maskSrcKey && (maskSrcKey in func);
+function _signersToAsn1(signers) {
+ var ret = [];
+ for(var i = 0; i < signers.length; ++i) {
+ ret.push(_signerToAsn1(signers[i]));
+ }
+ return ret;
}
/**
- * Converts `string` to a property path array.
+ * Convert an attribute object to an ASN.1 Attribute.
*
- * @private
- * @param {string} string The string to convert.
- * @returns {Array} Returns the property path array.
+ * @param attr the attribute object.
+ *
+ * @return the ASN.1 Attribute.
*/
-var stringToPath = memoize(function(string) {
- string = toString(string);
+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);
+ }
+ }
- var result = [];
- if (reLeadingDot.test(string)) {
- result.push('');
+ 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));
+ }
}
- string.replace(rePropName, function(match, number, quote, string) {
- result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
- });
- return result;
-});
-/**
- * Converts `value` to a string key if it's not a string or symbol.
- *
- * @private
- * @param {*} value The value to inspect.
- * @returns {string|symbol} Returns the key.
- */
-function toKey(value) {
- if (typeof value == 'string' || isSymbol(value)) {
- return value;
- }
- var result = (value + '');
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
+ // 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
+ ])
+ ]);
}
/**
- * Converts `func` to its source code.
+ * Map messages encrypted content to ASN.1 objects.
*
- * @private
- * @param {Function} func The function to process.
- * @returns {string} Returns the source code.
+ * @param ec The encryptedContent object of the message.
+ *
+ * @return ASN.1 representation of the encryptedContent object (SEQUENCE).
*/
-function toSource(func) {
- if (func != null) {
- try {
- return funcToString.call(func);
- } catch (e) {}
- try {
- return (func + '');
- } catch (e) {}
- }
- return '';
+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())
+ ])
+ ];
}
/**
- * Creates a function that memoizes the result of `func`. If `resolver` is
- * provided, it determines the cache key for storing the result based on the
- * arguments provided to the memoized function. By default, the first argument
- * provided to the memoized function is used as the map cache key. The `func`
- * is invoked with the `this` binding of the memoized function.
- *
- * **Note:** The cache is exposed as the `cache` property on the memoized
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
- * constructor with one whose instances implement the
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
- * method interface of `delete`, `get`, `has`, and `set`.
- *
- * @static
- * @memberOf _
- * @since 0.1.0
- * @category Function
- * @param {Function} func The function to have its output memoized.
- * @param {Function} [resolver] The function to resolve the cache key.
- * @returns {Function} Returns the new memoized function.
- * @example
- *
- * var object = { 'a': 1, 'b': 2 };
- * var other = { 'c': 3, 'd': 4 };
- *
- * var values = _.memoize(_.values);
- * values(object);
- * // => [1, 2]
+ * Reads the "common part" of an PKCS#7 content block (in ASN.1 format)
*
- * values(other);
- * // => [3, 4]
+ * This function reads the "common part" of the PKCS#7 content blocks
+ * EncryptedData and EnvelopedData, i.e. version number and symmetrically
+ * encrypted content block.
*
- * object.a = 2;
- * values(object);
- * // => [1, 2]
+ * 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.
*
- * // Modify the result cache.
- * values.cache.set(object, ['a', 'b']);
- * values(object);
- * // => ['a', 'b']
+ * @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.
*
- * // Replace `_.memoize.Cache`.
- * _.memoize.Cache = WeakMap;
+ * @return the value map captured by validator object.
*/
-function memoize(func, resolver) {
- if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {
- throw new TypeError(FUNC_ERROR_TEXT);
+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;
}
- var memoized = function() {
- var args = arguments,
- key = resolver ? resolver.apply(this, args) : args[0],
- cache = memoized.cache;
- if (cache.has(key)) {
- return cache.get(key);
+ // 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;
}
- var result = func.apply(this, args);
- memoized.cache = cache.set(key, result);
- return result;
- };
- memoized.cache = new (memoize.Cache || MapCache);
- return memoized;
-}
+ msg.encryptedContent = {
+ algorithm: asn1.derToOid(capture.encAlgorithm),
+ parameter: forge.util.createBuffer(capture.encParameter.value),
+ content: forge.util.createBuffer(content)
+ };
+ }
-// Assign cache to `_.memoize`.
-memoize.Cache = MapCache;
+ 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;
+}
/**
- * 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
+ * Decrypt the symmetrically encrypted content block of the PKCS#7 message.
*
- * _.eq('a', Object('a'));
- * // => false
+ * 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.
*
- * _.eq(NaN, NaN);
- * // => true
+ * @param The PKCS#7 message object.
*/
-function eq(value, other) {
- return value === other || (value !== value && other !== other);
+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;
+ }
}
+
+/***/ }),
+/* 981 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
+
/**
- * 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
+ * Cross-browser support for logging in a web application.
*
- * _.isArray([1, 2, 3]);
- * // => true
+ * @author David I. Lehn
*
- * _.isArray(document.body.children);
- * // => false
+ * Copyright (c) 2008-2013 Digital Bazaar, Inc.
+ */
+var forge = __webpack_require__(985);
+__webpack_require__(165);
+
+/* LOG API */
+module.exports = forge.log = forge.log || {};
+
+/**
+ * Application logging system.
*
- * _.isArray('abc');
- * // => false
+ * 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.
*
- * _.isArray(_.noop);
- * // => false
+ * @param message message object
*/
-var isArray = Array.isArray;
+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);
+ }
+ }
+ }
+};
/**
- * Checks if `value` is classified as a `Function` object.
+ * Sets the 'standard' key on a message object to:
+ * "LEVEL [category] " + message
*
- * @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
+ * @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.
*
- * _.isFunction(_);
- * // => true
+ * @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([] || false);
+ // 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'.
*
- * _.isFunction(/abc/);
- * // => false
+ * @param message a message log object.
*/
-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;
+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]);
+ }
}
/**
- * 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('')`)
+ * Creates a new logger with specified custom logging function.
*
- * @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
+ * 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
*
- * _.isObject({});
- * // => true
+ * @param logFunction a logging function which takes a log message object
+ * as a parameter.
*
- * _.isObject([1, 2, 3]);
- * // => true
+ * @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.
*
- * _.isObject(_.noop);
- * // => true
+ * @param logger the target logger.
+ * @param level the new maximum log level as a string.
*
- * _.isObject(null);
- * // => false
+ * @return true if set, false if not.
*/
-function isObject(value) {
- var type = typeof value;
- return !!value && (type == 'object' || type == 'function');
-}
+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;
+};
/**
- * Checks if `value` is object-like. A value is object-like if it's not `null`
- * and has a `typeof` result of "object".
+ * Locks the log level at its current value.
*
- * @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
+ * @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.
*
- * _.isObjectLike([1, 2, 3]);
- * // => true
+ * @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.
*
- * _.isObjectLike(_.noop);
- * // => false
+ * 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.
*
- * _.isObjectLike(null);
- * // => false
+ * 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.
*/
-function isObjectLike(value) {
- return !!value && typeof value == 'object';
+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;
+
+
+/***/ }),
+/* 982 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
+
+/***/ }),
+/* 983 */,
+/* 984 */,
+/* 985 */
+/***/ (function(module) {
+
/**
- * 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
+ * Node.js module for Forge.
*
- * _.isSymbol(Symbol.iterator);
- * // => true
+ * @author Dave Longley
*
- * _.isSymbol('abc');
- * // => false
+ * Copyright 2011-2016 Digital Bazaar, Inc.
*/
-function isSymbol(value) {
- return typeof value == 'symbol' ||
- (isObjectLike(value) && objectToString.call(value) == symbolTag);
-}
+module.exports = {
+ // default options
+ options: {
+ usePureJavaScript: false
+ }
+};
+
+
+/***/ }),
+/* 986 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
/**
- * Converts `value` to a string. An empty string is returned for `null`
- * and `undefined` values. The sign of `-0` is preserved.
+ * Secure Hash Algorithm with 160-bit digest (SHA-1) implementation.
*
- * @static
- * @memberOf _
- * @since 4.0.0
- * @category Lang
- * @param {*} value The value to process.
- * @returns {string} Returns the string.
- * @example
- *
- * _.toString(null);
- * // => ''
+ * @author Dave Longley
*
- * _.toString(-0);
- * // => '-0'
+ * Copyright (c) 2010-2015 Digital Bazaar, Inc.
+ */
+var forge = __webpack_require__(985);
+__webpack_require__(688);
+__webpack_require__(165);
+
+var sha1 = module.exports = forge.sha1 = forge.sha1 || {};
+forge.md.sha1 = forge.md.algorithms.sha1 = sha1;
+
+/**
+ * Creates a SHA-1 message digest object.
*
- * _.toString([1, 2, 3]);
- * // => '1,2,3'
+ * @return a message digest object.
*/
-function toString(value) {
- return value == null ? '' : baseToString(value);
+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;
}
/**
- * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
- * it's created. Arrays are created for missing index properties while objects
- * are created for all other missing properties. Use `_.setWith` to customize
- * `path` creation.
- *
- * **Note:** This method mutates `object`.
- *
- * @static
- * @memberOf _
- * @since 3.7.0
- * @category Object
- * @param {Object} object The object to modify.
- * @param {Array|string} path The path of the property to set.
- * @param {*} value The value to set.
- * @returns {Object} Returns `object`.
- * @example
- *
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
- *
- * _.set(object, 'a[0].b.c', 4);
- * console.log(object.a[0].b.c);
- * // => 4
+ * Updates a SHA-1 state with the given byte buffer.
*
- * _.set(object, ['x', '0', 'y', 'z'], 5);
- * console.log(object.x[0].y.z);
- * // => 5
+ * @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 set(object, path, value) {
- return object == null ? object : baseSet(object, path, value);
+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;
+ }
}
-module.exports = set;
+/***/ }),
+/* 987 */,
+/* 988 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+
+"use strict";
+
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
/***/ }),
+/* 989 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
-/***/ 890:
-/***/ (function(module, __unusedexports, __webpack_require__) {
-
-module.exports = authenticationPlugin;
-
-const { createTokenAuth } = __webpack_require__(813);
-const { Deprecation } = __webpack_require__(692);
-const once = __webpack_require__(969);
-
-const beforeRequest = __webpack_require__(414);
-const requestError = __webpack_require__(446);
-const validate = __webpack_require__(538);
-const withAuthorizationPrefix = __webpack_require__(85);
-
-const deprecateAuthBasic = once((log, deprecation) => log.warn(deprecation));
-const deprecateAuthObject = once((log, deprecation) => log.warn(deprecation));
-
-function authenticationPlugin(octokit, options) {
- // If `options.authStrategy` is set then use it and pass in `options.auth`
- if (options.authStrategy) {
- const auth = options.authStrategy(options.auth);
- octokit.hook.wrap("request", auth.hook);
- octokit.auth = auth;
- return;
- }
-
- // If neither `options.authStrategy` nor `options.auth` are set, the `octokit` instance
- // is unauthenticated. The `octokit.auth()` method is a no-op and no request hook is registred.
- if (!options.auth) {
- octokit.auth = () =>
- Promise.resolve({
- type: "unauthenticated"
- });
- return;
- }
-
- const isBasicAuthString =
- typeof options.auth === "string" &&
- /^basic/.test(withAuthorizationPrefix(options.auth));
-
- // If only `options.auth` is set to a string, use the default token authentication strategy.
- if (typeof options.auth === "string" && !isBasicAuthString) {
- const auth = createTokenAuth(options.auth);
- octokit.hook.wrap("request", auth.hook);
- octokit.auth = auth;
- return;
- }
-
- // Otherwise log a deprecation message
- const [deprecationMethod, deprecationMessapge] = isBasicAuthString
- ? [
- deprecateAuthBasic,
- 'Setting the "new Octokit({ auth })" option to a Basic Auth string is deprecated. Use https://github.com/octokit/auth-basic.js instead. See (https://octokit.github.io/rest.js/#authentication)'
- ]
- : [
- deprecateAuthObject,
- 'Setting the "new Octokit({ auth })" option to an object without also setting the "authStrategy" option is deprecated and will be removed in v17. See (https://octokit.github.io/rest.js/#authentication)'
- ];
- deprecationMethod(
- octokit.log,
- new Deprecation("[@octokit/rest] " + deprecationMessapge)
- );
-
- octokit.auth = () =>
- Promise.resolve({
- type: "deprecated",
- message: deprecationMessapge
- });
-
- validate(options.auth);
-
- const state = {
- octokit,
- auth: options.auth
- };
+"use strict";
- octokit.hook.before("request", beforeRequest.bind(null, state));
- octokit.hook.error("request", requestError.bind(null, state));
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v3_1 = __webpack_require__(59);
+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
/***/ }),
-
-/***/ 898:
+/* 990 */,
+/* 991 */
/***/ (function(__unusedmodule, exports, __webpack_require__) {
"use strict";
-
-Object.defineProperty(exports, '__esModule', { value: true });
-
-var request = __webpack_require__(753);
-var universalUserAgent = __webpack_require__(862);
-
-const VERSION = "4.3.1";
-
-class GraphqlError extends Error {
- constructor(request, response) {
- const message = response.data.errors[0].message;
- super(message);
- Object.assign(this, response.data);
- this.name = "GraphqlError";
- this.request = request; // Maintains proper stack trace (only available on V8)
-
- /* istanbul ignore next */
-
- if (Error.captureStackTrace) {
- Error.captureStackTrace(this, this.constructor);
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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);
+ }
}
- }
-
-}
-
-const NON_VARIABLE_OPTIONS = ["method", "baseUrl", "url", "headers", "request", "query"];
-function graphql(request, query, options) {
- options = typeof query === "string" ? options = Object.assign({
- query
- }, options) : options = query;
- const requestOptions = Object.keys(options).reduce((result, key) => {
- if (NON_VARIABLE_OPTIONS.includes(key)) {
- result[key] = options[key];
- return result;
+ servicedirectory_v1beta1.Servicedirectory = Servicedirectory;
+ class Resource$Projects {
+ constructor(context) {
+ this.context = context;
+ this.locations = new Resource$Projects$Locations(this.context);
+ }
}
-
- if (!result.variables) {
- result.variables = {};
+ 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);
+ }
+ }
}
-
- result.variables[key] = options[key];
- return result;
- }, {});
- return request(requestOptions).then(response => {
- if (response.data.errors) {
- throw new GraphqlError(requestOptions, {
- data: response.data
- });
+ 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
- return response.data.data;
- });
-}
+/***/ }),
+/* 992 */
+/***/ (function(module, __unusedexports, __webpack_require__) {
-function withDefaults(request$1, newDefaults) {
- const newRequest = request$1.defaults(newDefaults);
+/**
+ * Supported cipher modes.
+ *
+ * @author Dave Longley
+ *
+ * Copyright (c) 2010-2014 Digital Bazaar, Inc.
+ */
+var forge = __webpack_require__(985);
+__webpack_require__(165);
- const newApi = (query, options) => {
- return graphql(newRequest, query, options);
- };
+forge.cipher = forge.cipher || {};
- return Object.assign(newApi, {
- defaults: withDefaults.bind(null, newRequest),
- endpoint: request.request.endpoint
- });
-}
+// supported cipher modes
+var modes = module.exports = forge.cipher.modes = forge.cipher.modes || {};
-const graphql$1 = withDefaults(request.request, {
- headers: {
- "user-agent": `octokit-graphql.js/${VERSION} ${universalUserAgent.getUserAgent()}`
- },
- method: "POST",
- url: "/graphql"
-});
-function withCustomRequest(customRequest) {
- return withDefaults(customRequest, {
- method: "POST",
- url: "/graphql"
- });
-}
+/** Electronic codebook (ECB) (Don't use this; it's not secure) **/
-exports.graphql = graphql$1;
-exports.withCustomRequest = withCustomRequest;
-//# sourceMappingURL=index.js.map
+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;
+ }
-/***/ 916:
-/***/ (function(__unusedmodule, exports) {
+ // get next block
+ for(var i = 0; i < this._ints; ++i) {
+ this._inBlock[i] = input.getInt32();
+ }
-"use strict";
+ // encrypt block
+ this.cipher.encrypt(this._inBlock, this._outBlock);
+ // write output
+ for(var i = 0; i < this._ints; ++i) {
+ output.putInt32(this._outBlock[i]);
+ }
+};
-Object.defineProperty(exports, '__esModule', { value: true });
+modes.ecb.prototype.decrypt = function(input, output, finish) {
+ // not enough input to decrypt
+ if(input.length() < this.blockSize && !(finish && input.length() > 0)) {
+ return true;
+ }
-const VERSION = "1.0.0";
+ // get next block
+ for(var i = 0; i < this._ints; ++i) {
+ this._inBlock[i] = input.getInt32();
+ }
-/**
- * @param octokit Octokit instance
- * @param options Options passed to Octokit constructor
- */
+ // decrypt block
+ this.cipher.decrypt(this._inBlock, this._outBlock);
-function requestLog(octokit) {
- octokit.hook.wrap("request", (request, options) => {
- octokit.log.debug("request", options);
- const start = Date.now();
- const requestOptions = octokit.request.endpoint.parse(options);
- const path = requestOptions.url.replace(options.baseUrl, "");
- return request(options).then(response => {
- octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`);
- return response;
- }).catch(error => {
- octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - start}ms`);
- throw error;
- });
- });
-}
-requestLog.VERSION = VERSION;
+ // write output
+ for(var i = 0; i < this._ints; ++i) {
+ output.putInt32(this._outBlock[i]);
+ }
+};
-exports.requestLog = requestLog;
-//# sourceMappingURL=index.js.map
+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;
+ }
-/***/ 919:
-/***/ (function(module) {
+ // trim off padding bytes
+ output.truncate(count);
+ return true;
+};
-module.exports = {"_from":"@octokit/rest@^16.43.1","_id":"@octokit/rest@16.43.1","_inBundle":false,"_integrity":"sha512-gfFKwRT/wFxq5qlNjnW2dh+qh74XgTQ2B179UX5K1HYCluioWj8Ndbgqw2PVqa1NnVJkGHp2ovMpVn/DImlmkw==","_location":"/@actions/github/@octokit/rest","_phantomChildren":{},"_requested":{"type":"range","registry":true,"raw":"@octokit/rest@^16.43.1","name":"@octokit/rest","escapedName":"@octokit%2frest","scope":"@octokit","rawSpec":"^16.43.1","saveSpec":null,"fetchSpec":"^16.43.1"},"_requiredBy":["/@actions/github"],"_resolved":"https://registry.npmjs.org/@octokit/rest/-/rest-16.43.1.tgz","_shasum":"3b11e7d1b1ac2bbeeb23b08a17df0b20947eda6b","_spec":"@octokit/rest@^16.43.1","_where":"C:\\Users\\JamesJohn\\opensource\\oppiabot\\node_modules\\@actions\\github","author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"bugs":{"url":"https://github.com/octokit/rest.js/issues"},"bundleDependencies":false,"bundlesize":[{"path":"./dist/octokit-rest.min.js.gz","maxSize":"33 kB"}],"contributors":[{"name":"Mike de Boer","email":"info@mikedeboer.nl"},{"name":"Fabian Jakobs","email":"fabian@c9.io"},{"name":"Joe Gallo","email":"joe@brassafrax.com"},{"name":"Gregor Martynus","url":"https://github.com/gr2m"}],"dependencies":{"@octokit/auth-token":"^2.4.0","@octokit/plugin-paginate-rest":"^1.1.1","@octokit/plugin-request-log":"^1.0.0","@octokit/plugin-rest-endpoint-methods":"2.4.0","@octokit/request":"^5.2.0","@octokit/request-error":"^1.0.2","atob-lite":"^2.0.0","before-after-hook":"^2.0.0","btoa-lite":"^1.0.0","deprecation":"^2.0.0","lodash.get":"^4.4.2","lodash.set":"^4.3.2","lodash.uniq":"^4.5.0","octokit-pagination-methods":"^1.1.0","once":"^1.4.0","universal-user-agent":"^4.0.0"},"deprecated":false,"description":"GitHub REST API client for Node.js","devDependencies":{"@gimenete/type-writer":"^0.1.3","@octokit/auth":"^1.1.1","@octokit/fixtures-server":"^5.0.6","@octokit/graphql":"^4.2.0","@types/node":"^13.1.0","bundlesize":"^0.18.0","chai":"^4.1.2","compression-webpack-plugin":"^3.1.0","cypress":"^3.0.0","glob":"^7.1.2","http-proxy-agent":"^4.0.0","lodash.camelcase":"^4.3.0","lodash.merge":"^4.6.1","lodash.upperfirst":"^4.3.1","lolex":"^5.1.2","mkdirp":"^1.0.0","mocha":"^7.0.1","mustache":"^4.0.0","nock":"^11.3.3","npm-run-all":"^4.1.2","nyc":"^15.0.0","prettier":"^1.14.2","proxy":"^1.0.0","semantic-release":"^17.0.0","sinon":"^8.0.0","sinon-chai":"^3.0.0","sort-keys":"^4.0.0","string-to-arraybuffer":"^1.0.0","string-to-jsdoc-comment":"^1.0.0","typescript":"^3.3.1","webpack":"^4.0.0","webpack-bundle-analyzer":"^3.0.0","webpack-cli":"^3.0.0"},"files":["index.js","index.d.ts","lib","plugins"],"homepage":"https://github.com/octokit/rest.js#readme","keywords":["octokit","github","rest","api-client"],"license":"MIT","name":"@octokit/rest","nyc":{"ignore":["test"]},"publishConfig":{"access":"public"},"release":{"publish":["@semantic-release/npm",{"path":"@semantic-release/github","assets":["dist/*","!dist/*.map.gz"]}]},"repository":{"type":"git","url":"git+https://github.com/octokit/rest.js.git"},"scripts":{"build":"npm-run-all build:*","build:browser":"npm-run-all build:browser:*","build:browser:development":"webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json","build:browser:production":"webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map","build:ts":"npm run -s update-endpoints:typescript","coverage":"nyc report --reporter=html && open coverage/index.html","generate-bundle-report":"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html","lint":"prettier --check '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json","lint:fix":"prettier --write '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json","postvalidate:ts":"tsc --noEmit --target es6 test/typescript-validate.ts","prebuild:browser":"mkdirp dist/","pretest":"npm run -s lint","prevalidate:ts":"npm run -s build:ts","start-fixtures-server":"octokit-fixtures-server","test":"nyc mocha test/mocha-node-setup.js \"test/*/**/*-test.js\"","test:browser":"cypress run --browser chrome","update-endpoints":"npm-run-all update-endpoints:*","update-endpoints:fetch-json":"node scripts/update-endpoints/fetch-json","update-endpoints:typescript":"node scripts/update-endpoints/typescript","validate:ts":"tsc --target es6 --noImplicitAny index.d.ts"},"types":"index.d.ts","version":"16.43.1"};
+/** 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();
+ }
-/***/ 929:
-/***/ (function(module, __unusedexports, __webpack_require__) {
+ // encrypt block
+ this.cipher.encrypt(this._inBlock, this._outBlock);
-module.exports = hasNextPage
+ // write output, save previous block
+ for(var i = 0; i < this._ints; ++i) {
+ output.putInt32(this._outBlock[i]);
+ }
+ this._prev = this._outBlock;
+};
-const deprecate = __webpack_require__(370)
-const getPageLinks = __webpack_require__(577)
+modes.cbc.prototype.decrypt = function(input, output, finish) {
+ // not enough input to decrypt
+ if(input.length() < this.blockSize && !(finish && input.length() > 0)) {
+ return true;
+ }
-function hasNextPage (link) {
- deprecate(`octokit.hasNextPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`)
- return getPageLinks(link).next
-}
+ // 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);
+};
-/***/ 948:
-/***/ (function(module) {
+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;
+};
-"use strict";
+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;
+ }
-/**
- * Tries to execute a function and discards any error that occurs.
- * @param {Function} fn - Function that might or might not throw an error.
- * @returns {?*} Return-value of the function when no error occurred.
- */
-module.exports = function(fn) {
+ // trim off padding bytes
+ output.truncate(count);
+ return true;
+};
- try { return fn() } catch (e) {}
+/** 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;
+};
-/***/ 950:
-/***/ (function(__unusedmodule, exports, __webpack_require__) {
+modes.cfb.prototype.encrypt = function(input, output, finish) {
+ // not enough input to encrypt
+ var inputLength = input.length();
+ if(inputLength === 0) {
+ return true;
+ }
-"use strict";
+ // encrypt block
+ this.cipher.encrypt(this._inBlock, this._outBlock);
-Object.defineProperty(exports, "__esModule", { value: true });
-const url = __webpack_require__(835);
-function getProxyUrl(reqUrl) {
- let usingSsl = reqUrl.protocol === 'https:';
- let proxyUrl;
- if (checkBypass(reqUrl)) {
- return proxyUrl;
- }
- let proxyVar;
- if (usingSsl) {
- proxyVar = process.env['https_proxy'] || process.env['HTTPS_PROXY'];
- }
- else {
- proxyVar = process.env['http_proxy'] || process.env['HTTP_PROXY'];
- }
- if (proxyVar) {
- proxyUrl = url.parse(proxyVar);
- }
- return proxyUrl;
-}
-exports.getProxyUrl = getProxyUrl;
-function checkBypass(reqUrl) {
- if (!reqUrl.hostname) {
- return false;
- }
- let 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
- let upperReqHosts = [reqUrl.hostname.toUpperCase()];
- if (typeof reqPort === 'number') {
- upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);
- }
- // Compare request host against noproxy
- for (let upperNoProxyItem of noProxy
- .split(',')
- .map(x => x.trim().toUpperCase())
- .filter(x => x)) {
- if (upperReqHosts.some(x => x === upperNoProxyItem)) {
- return true;
- }
+ // 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 false;
-}
-exports.checkBypass = checkBypass;
-
+ return;
+ }
-/***/ }),
+ // handle partial block
+ var partialBytes = (this.blockSize - inputLength) % this.blockSize;
+ if(partialBytes > 0) {
+ partialBytes = this.blockSize - partialBytes;
+ }
-/***/ 953:
-/***/ (function(module, __unusedexports, __webpack_require__) {
+ // 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]);
+ }
-module.exports = authenticationPlugin;
+ 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];
+ }
+ }
-const { Deprecation } = __webpack_require__(692);
-const once = __webpack_require__(969);
+ // skip any previous partial bytes
+ if(this._partialBytes > 0) {
+ this._partialOutput.getBytes(this._partialBytes);
+ }
-const deprecateAuthenticate = once((log, deprecation) => log.warn(deprecation));
+ if(partialBytes > 0 && !finish) {
+ output.putBytes(this._partialOutput.getBytes(
+ partialBytes - this._partialBytes));
+ this._partialBytes = partialBytes;
+ return true;
+ }
-const authenticate = __webpack_require__(790);
-const beforeRequest = __webpack_require__(140);
-const requestError = __webpack_require__(240);
+ output.putBytes(this._partialOutput.getBytes(
+ inputLength - this._partialBytes));
+ this._partialBytes = 0;
+};
-function authenticationPlugin(octokit, options) {
- if (options.auth) {
- octokit.authenticate = () => {
- deprecateAuthenticate(
- octokit.log,
- new Deprecation(
- '[@octokit/rest] octokit.authenticate() is deprecated and has no effect when "auth" option is set on Octokit constructor'
- )
- );
- };
- return;
+modes.cfb.prototype.decrypt = function(input, output, finish) {
+ // not enough input to decrypt
+ var inputLength = input.length();
+ if(inputLength === 0) {
+ return true;
}
- const state = {
- octokit,
- auth: false
- };
- octokit.authenticate = authenticate.bind(null, state);
- octokit.hook.before("request", beforeRequest.bind(null, state));
- octokit.hook.error("request", requestError.bind(null, state));
-}
+ // 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;
+ }
-/***/ 955:
-/***/ (function(module, __unusedexports, __webpack_require__) {
+ // handle partial block
+ var partialBytes = (this.blockSize - inputLength) % this.blockSize;
+ if(partialBytes > 0) {
+ partialBytes = this.blockSize - partialBytes;
+ }
-"use strict";
+ // 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]);
+ }
-const path = __webpack_require__(622);
-const childProcess = __webpack_require__(129);
-const crossSpawn = __webpack_require__(20);
-const stripEof = __webpack_require__(768);
-const npmRunPath = __webpack_require__(621);
-const isStream = __webpack_require__(323);
-const _getStream = __webpack_require__(145);
-const pFinally = __webpack_require__(697);
-const onExit = __webpack_require__(260);
-const errname = __webpack_require__(427);
-const stdio = __webpack_require__(168);
+ 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];
+ }
+ }
-const TEN_MEGABYTES = 1000 * 1000 * 10;
+ // skip any previous partial bytes
+ if(this._partialBytes > 0) {
+ this._partialOutput.getBytes(this._partialBytes);
+ }
-function handleArgs(cmd, args, opts) {
- let parsed;
+ if(partialBytes > 0 && !finish) {
+ output.putBytes(this._partialOutput.getBytes(
+ partialBytes - this._partialBytes));
+ this._partialBytes = partialBytes;
+ return true;
+ }
- opts = Object.assign({
- extendEnv: true,
- env: {}
- }, opts);
+ output.putBytes(this._partialOutput.getBytes(
+ inputLength - this._partialBytes));
+ this._partialBytes = 0;
+};
- if (opts.extendEnv) {
- opts.env = Object.assign({}, process.env, opts.env);
- }
+/** Output feedback (OFB) **/
- if (opts.__winShell === true) {
- delete opts.__winShell;
- parsed = {
- command: cmd,
- args,
- options: opts,
- file: cmd,
- original: {
- cmd,
- args
- }
- };
- } else {
- parsed = crossSpawn._parse(cmd, args, opts);
- }
+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;
+};
- opts = Object.assign({
- maxBuffer: TEN_MEGABYTES,
- buffer: true,
- stripEof: true,
- preferLocal: true,
- localDir: parsed.options.cwd || process.cwd(),
- encoding: 'utf8',
- reject: true,
- cleanup: true
- }, parsed.options);
+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;
+};
- opts.stdio = stdio(opts);
+modes.ofb.prototype.encrypt = function(input, output, finish) {
+ // not enough input to encrypt
+ var inputLength = input.length();
+ if(input.length() === 0) {
+ return true;
+ }
- if (opts.preferLocal) {
- opts.env = npmRunPath.env(Object.assign({}, opts, {cwd: opts.localDir}));
- }
+ // encrypt block (OFB always uses encryption mode)
+ this.cipher.encrypt(this._inBlock, this._outBlock);
- if (opts.detached) {
- // #115
- opts.cleanup = false;
- }
+ // 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;
+ }
- if (process.platform === 'win32' && path.basename(parsed.command) === 'cmd.exe') {
- // #116
- parsed.args.unshift('/q');
- }
+ // handle partial block
+ var partialBytes = (this.blockSize - inputLength) % this.blockSize;
+ if(partialBytes > 0) {
+ partialBytes = this.blockSize - partialBytes;
+ }
- return {
- cmd: parsed.command,
- args: parsed.args,
- opts,
- parsed
- };
-}
+ // XOR input with output
+ this._partialOutput.clear();
+ for(var i = 0; i < this._ints; ++i) {
+ this._partialOutput.putInt32(input.getInt32() ^ this._outBlock[i]);
+ }
-function handleInput(spawned, input) {
- if (input === null || input === undefined) {
- return;
- }
+ 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];
+ }
+ }
- if (isStream(input)) {
- input.pipe(spawned.stdin);
- } else {
- spawned.stdin.end(input);
- }
-}
+ // skip any previous partial bytes
+ if(this._partialBytes > 0) {
+ this._partialOutput.getBytes(this._partialBytes);
+ }
-function handleOutput(opts, val) {
- if (val && opts.stripEof) {
- val = stripEof(val);
- }
+ if(partialBytes > 0 && !finish) {
+ output.putBytes(this._partialOutput.getBytes(
+ partialBytes - this._partialBytes));
+ this._partialBytes = partialBytes;
+ return true;
+ }
- return val;
-}
+ output.putBytes(this._partialOutput.getBytes(
+ inputLength - this._partialBytes));
+ this._partialBytes = 0;
+};
-function handleShell(fn, cmd, opts) {
- let file = '/bin/sh';
- let args = ['-c', cmd];
+modes.ofb.prototype.decrypt = modes.ofb.prototype.encrypt;
- opts = Object.assign({}, opts);
+/** Counter (CTR) **/
- if (process.platform === 'win32') {
- opts.__winShell = true;
- file = process.env.comspec || 'cmd.exe';
- args = ['/s', '/c', `"${cmd}"`];
- opts.windowsVerbatimArguments = true;
- }
+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;
+};
- if (opts.shell) {
- file = opts.shell;
- delete opts.shell;
- }
+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;
+};
- return fn(file, args, opts);
-}
+modes.ctr.prototype.encrypt = function(input, output, finish) {
+ // not enough input to encrypt
+ var inputLength = input.length();
+ if(inputLength === 0) {
+ return true;
+ }
-function getStream(process, stream, {encoding, buffer, maxBuffer}) {
- if (!process[stream]) {
- return null;
- }
+ // encrypt block (CTR always uses encryption mode)
+ this.cipher.encrypt(this._inBlock, this._outBlock);
- let ret;
+ // 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;
+ }
- if (!buffer) {
- // TODO: Use `ret = util.promisify(stream.finished)(process[stream]);` when targeting Node.js 10
- ret = new Promise((resolve, reject) => {
- process[stream]
- .once('end', resolve)
- .once('error', reject);
- });
- } else if (encoding) {
- ret = _getStream(process[stream], {
- encoding,
- maxBuffer
- });
- } else {
- ret = _getStream.buffer(process[stream], {maxBuffer});
- }
+ // XOR input with output
+ this._partialOutput.clear();
+ for(var i = 0; i < this._ints; ++i) {
+ this._partialOutput.putInt32(input.getInt32() ^ this._outBlock[i]);
+ }
- return ret.catch(err => {
- err.stream = stream;
- err.message = `${stream} ${err.message}`;
- throw err;
- });
-}
+ if(partialBytes > 0) {
+ // block still incomplete, restore input buffer
+ input.read -= this.blockSize;
+ }
-function makeError(result, options) {
- const {stdout, stderr} = result;
+ // skip any previous partial bytes
+ if(this._partialBytes > 0) {
+ this._partialOutput.getBytes(this._partialBytes);
+ }
- let err = result.error;
- const {code, signal} = result;
+ if(partialBytes > 0 && !finish) {
+ output.putBytes(this._partialOutput.getBytes(
+ partialBytes - this._partialBytes));
+ this._partialBytes = partialBytes;
+ return true;
+ }
- const {parsed, joinedCmd} = options;
- const timedOut = options.timedOut || false;
+ output.putBytes(this._partialOutput.getBytes(
+ inputLength - this._partialBytes));
+ this._partialBytes = 0;
+ }
- if (!err) {
- let output = '';
+ // block complete, increment counter (input block)
+ inc32(this._inBlock);
+};
- if (Array.isArray(parsed.opts.stdio)) {
- if (parsed.opts.stdio[2] !== 'inherit') {
- output += output.length > 0 ? stderr : `\n${stderr}`;
- }
+modes.ctr.prototype.decrypt = modes.ctr.prototype.encrypt;
- if (parsed.opts.stdio[1] !== 'inherit') {
- output += `\n${stdout}`;
- }
- } else if (parsed.opts.stdio !== 'inherit') {
- output = `\n${stderr}${stdout}`;
- }
+/** Galois/Counter Mode (GCM) **/
- err = new Error(`Command failed: ${joinedCmd}${output}`);
- err.code = code < 0 ? errname(code) : code;
- }
+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;
+};
- err.stdout = stdout;
- err.stderr = stderr;
- err.failed = true;
- err.signal = signal || null;
- err.cmd = joinedCmd;
- err.timedOut = timedOut;
+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);
- return err;
-}
+ // no ciphered data processed yet
+ this._cipherLength = 0;
-function joinCmd(cmd, args) {
- let joinedCmd = cmd;
+ // default additional data is none
+ var additionalData;
+ if('additionalData' in options) {
+ additionalData = forge.util.createBuffer(options.additionalData);
+ } else {
+ additionalData = forge.util.createBuffer();
+ }
- if (Array.isArray(args) && args.length > 0) {
- joinedCmd += ' ' + args.join(' ');
- }
+ // default tag length is 128 bits
+ if('tagLength' in options) {
+ this._tagLength = options.tagLength;
+ } else {
+ this._tagLength = 128;
+ }
- return joinedCmd;
-}
+ // 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.');
+ }
+ }
-module.exports = (cmd, args, opts) => {
- const parsed = handleArgs(cmd, args, opts);
- const {encoding, buffer, maxBuffer} = parsed.opts;
- const joinedCmd = joinCmd(cmd, args);
+ // 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)));
+ }
- let spawned;
- try {
- spawned = childProcess.spawn(parsed.cmd, parsed.args, parsed.opts);
- } catch (err) {
- return Promise.reject(err);
- }
+ // 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()
+ ]);
+ }
+};
- let removeExitHandler;
- if (parsed.opts.cleanup) {
- removeExitHandler = onExit(() => {
- spawned.kill();
- });
- }
+modes.gcm.prototype.encrypt = function(input, output, finish) {
+ // not enough input to encrypt
+ var inputLength = input.length();
+ if(inputLength === 0) {
+ return true;
+ }
- let timeoutId = null;
- let timedOut = false;
+ // encrypt block
+ this.cipher.encrypt(this._inBlock, this._outBlock);
- const cleanup = () => {
- if (timeoutId) {
- clearTimeout(timeoutId);
- timeoutId = null;
- }
+ // 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;
+ }
- if (removeExitHandler) {
- removeExitHandler();
- }
- };
+ // XOR input with output
+ this._partialOutput.clear();
+ for(var i = 0; i < this._ints; ++i) {
+ this._partialOutput.putInt32(input.getInt32() ^ this._outBlock[i]);
+ }
- if (parsed.opts.timeout > 0) {
- timeoutId = setTimeout(() => {
- timeoutId = null;
- timedOut = true;
- spawned.kill(parsed.opts.killSignal);
- }, parsed.opts.timeout);
- }
+ 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;
+ }
- const processDone = new Promise(resolve => {
- spawned.on('exit', (code, signal) => {
- cleanup();
- resolve({code, signal});
- });
+ // get output block for hashing
+ for(var i = 0; i < this._ints; ++i) {
+ this._outBlock[i] = this._partialOutput.getInt32();
+ }
+ this._partialOutput.read -= this.blockSize;
+ }
- spawned.on('error', err => {
- cleanup();
- resolve({error: err});
- });
+ // skip any previous partial bytes
+ if(this._partialBytes > 0) {
+ this._partialOutput.getBytes(this._partialBytes);
+ }
- if (spawned.stdin) {
- spawned.stdin.on('error', err => {
- cleanup();
- resolve({error: err});
- });
- }
- });
+ 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;
+ }
- function destroy() {
- if (spawned.stdout) {
- spawned.stdout.destroy();
- }
+ output.putBytes(this._partialOutput.getBytes(
+ inputLength - this._partialBytes));
+ this._partialBytes = 0;
+ }
- if (spawned.stderr) {
- spawned.stderr.destroy();
- }
- }
+ // update hash block S
+ this._s = this.ghash(this._hashSubkey, this._s, this._outBlock);
- const handlePromise = () => pFinally(Promise.all([
- processDone,
- getStream(spawned, 'stdout', {encoding, buffer, maxBuffer}),
- getStream(spawned, 'stderr', {encoding, buffer, maxBuffer})
- ]).then(arr => {
- const result = arr[0];
- result.stdout = arr[1];
- result.stderr = arr[2];
+ // increment counter (input block)
+ inc32(this._inBlock);
+};
- if (result.error || result.code !== 0 || result.signal !== null) {
- const err = makeError(result, {
- joinedCmd,
- parsed,
- timedOut
- });
+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;
+ }
- // TODO: missing some timeout logic for killed
- // https://github.com/nodejs/node/blob/master/lib/child_process.js#L203
- // err.killed = spawned.killed || killed;
- err.killed = err.killed || spawned.killed;
+ // encrypt block (GCM always uses encryption mode)
+ this.cipher.encrypt(this._inBlock, this._outBlock);
- if (!parsed.opts.reject) {
- return err;
- }
+ // increment counter (input block)
+ inc32(this._inBlock);
- throw err;
- }
+ // 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);
- return {
- stdout: handleOutput(parsed.opts, result.stdout),
- stderr: handleOutput(parsed.opts, result.stderr),
- code: 0,
- failed: false,
- killed: false,
- signal: null,
- cmd: joinedCmd,
- timedOut: false
- };
- }), destroy);
+ // XOR hash input with output
+ for(var i = 0; i < this._ints; ++i) {
+ output.putInt32(this._outBlock[i] ^ this._hashBlock[i]);
+ }
- crossSpawn._enoent.hookChildProcess(spawned, parsed.parsed);
+ // increment cipher data length
+ if(inputLength < this.blockSize) {
+ this._cipherLength += inputLength % this.blockSize;
+ } else {
+ this._cipherLength += this.blockSize;
+ }
+};
- handleInput(spawned, parsed.opts.input);
+modes.gcm.prototype.afterFinish = function(output, options) {
+ var rval = true;
- spawned.then = (onfulfilled, onrejected) => handlePromise().then(onfulfilled, onrejected);
- spawned.catch = onrejected => handlePromise().catch(onrejected);
+ // handle overflow
+ if(options.decrypt && options.overflow) {
+ output.truncate(this.blockSize - options.overflow);
+ }
- return spawned;
-};
+ // handle authentication tag
+ this.tag = forge.util.createBuffer();
-// TODO: set `stderr: 'ignore'` when that option is implemented
-module.exports.stdout = (...args) => module.exports(...args).then(x => x.stdout);
+ // concatenate additional data length with cipher length
+ var lengths = this._aDataLength.concat(from64To32(this._cipherLength * 8));
-// TODO: set `stdout: 'ignore'` when that option is implemented
-module.exports.stderr = (...args) => module.exports(...args).then(x => x.stderr);
+ // include lengths in hash
+ this._s = this.ghash(this._hashSubkey, this._s, lengths);
-module.exports.shell = (cmd, opts) => handleShell(module.exports, cmd, opts);
+ // 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]);
+ }
-module.exports.sync = (cmd, args, opts) => {
- const parsed = handleArgs(cmd, args, opts);
- const joinedCmd = joinCmd(cmd, args);
+ // trim tag to length
+ this.tag.truncate(this.tag.length() % (this._tagLength / 8));
- if (isStream(parsed.opts.input)) {
- throw new TypeError('The `input` option cannot be a stream in sync mode');
- }
+ // check authentication tag
+ if(options.decrypt && this.tag.bytes() !== this._tag) {
+ rval = false;
+ }
- const result = childProcess.spawnSync(parsed.cmd, parsed.args, parsed.opts);
- result.code = result.status;
+ return rval;
+};
- if (result.error || result.status !== 0 || result.signal !== null) {
- const err = makeError(result, {
- joinedCmd,
- parsed
- });
+/**
+ * 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 (!parsed.opts.reject) {
- return err;
- }
+ // if LSB(V_i) is 1, V_i = V_i >> 1
+ // else V_i = (V_i >> 1) ^ R
+ this.pow(v_i, v_i);
+ }
- throw err;
- }
+ return z_i;
+};
- return {
- stdout: handleOutput(parsed.opts, result.stdout),
- stderr: handleOutput(parsed.opts, result.stderr),
- code: 0,
- failed: false,
- signal: null,
- cmd: joinedCmd,
- timedOut: false
- };
+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;
+ }
};
-module.exports.shellSync = (cmd, opts) => handleShell(module.exports.sync, cmd, opts);
+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;
+};
-/***/ 966:
-/***/ (function(module, __unusedexports, __webpack_require__) {
+/**
+ * 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;
+};
-"use strict";
+/** Utility functions */
-const {PassThrough} = __webpack_require__(413);
+function transformIV(iv, blockSize) {
+ if(typeof iv === 'string') {
+ // convert iv string into byte buffer
+ iv = forge.util.createBuffer(iv);
+ }
-module.exports = options => {
- options = Object.assign({}, options);
+ 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]);
+ }
+ }
- const {array} = options;
- let {encoding} = options;
- const buffer = encoding === 'buffer';
- let objectMode = false;
+ if(iv.length() < blockSize) {
+ throw new Error(
+ 'Invalid IV length; got ' + iv.length() +
+ ' bytes and expected ' + blockSize + ' bytes.');
+ }
- if (array) {
- objectMode = !(encoding || buffer);
- } else {
- encoding = encoding || 'utf8';
- }
+ 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;
+ }
- if (buffer) {
- encoding = null;
- }
+ return iv;
+}
- let len = 0;
- const ret = [];
- const stream = new PassThrough({objectMode});
+function inc32(block) {
+ // increment last 32 bits of block only
+ block[block.length - 1] = (block[block.length - 1] + 1) & 0xFFFFFFFF;
+}
- if (encoding) {
- stream.setEncoding(encoding);
- }
+function from64To32(num) {
+ // convert 64-bit number to two BE Int32s
+ return [(num / 0x100000000) | 0, num & 0xFFFFFFFF];
+}
- stream.on('data', chunk => {
- ret.push(chunk);
- if (objectMode) {
- len = ret.length;
- } else {
- len += chunk.length;
- }
- });
+/***/ }),
+/* 993 */,
+/* 994 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
- stream.getBufferedValue = () => {
- if (array) {
- return ret;
- }
+"use strict";
- return buffer ? Buffer.concat(ret, len) : ret.join('');
- };
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+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
- stream.getBufferedLength = () => len;
+/***/ }),
+/* 995 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
- return stream;
-};
+"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 = __webpack_require__(129);
+const fs = __webpack_require__(747);
+const gcpMetadata = __webpack_require__(479);
+const os = __webpack_require__(87);
+const path = __webpack_require__(622);
+const crypto_1 = __webpack_require__(207);
+const transporters_1 = __webpack_require__(178);
+const computeclient_1 = __webpack_require__(437);
+const idtokenclient_1 = __webpack_require__(997);
+const envDetect_1 = __webpack_require__(424);
+const jwtclient_1 = __webpack_require__(686);
+const refreshclient_1 = __webpack_require__(171);
+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
/***/ }),
+/* 996 */
+/***/ (function(__unusedmodule, exports) {
-/***/ 969:
-/***/ (function(module, __unusedexports, __webpack_require__) {
+"use strict";
-var wrappy = __webpack_require__(11)
-module.exports = wrappy(once)
-module.exports.strict = wrappy(onceStrict)
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+Object.defineProperty(exports, "__esModule", { value: true });
+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
-once.proto = once(function () {
- Object.defineProperty(Function.prototype, 'once', {
- value: function () {
- return once(this)
- },
- configurable: true
- })
+/***/ }),
+/* 997 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
- Object.defineProperty(Function.prototype, 'onceStrict', {
- value: function () {
- return onceStrict(this)
- },
- configurable: true
- })
-})
+"use strict";
-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
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 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 = __webpack_require__(934);
+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
-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
-}
+/***/ }),
+/* 998 */,
+/* 999 */
+/***/ (function(__unusedmodule, exports, __webpack_require__) {
+"use strict";
-/***/ })
+// Copyright 2020 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 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 = __webpack_require__(927);
+const v2beta_1 = __webpack_require__(48);
+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
-/******/ });
\ No newline at end of file
+/***/ })
+/******/ ]);
\ No newline at end of file
diff --git a/constants.js b/constants.js
index 17182742..c338dfee 100644
--- a/constants.js
+++ b/constants.js
@@ -5,6 +5,7 @@ const synchronizeEvent = 'synchronize';
const closeEvent = 'closed';
const editEvent = 'edited';
const issuesLabelEvent = 'issues_labeled'
+const issuesAssignedEvent = 'issues_assigned'
const claCheck = 'cla-check';
const changelogCheck = 'changelog-check';
@@ -17,6 +18,7 @@ const mergeConflictCheck = 'merge-conflict-check';
const allMergeConflictCheck = 'all-merge-conflict-check';
const jobCheck = 'job-check';
const issuesLabelCheck = 'issues-labeled-check'
+const issuesAssignedCheck = 'issues-assigned-check'
const checksWhitelist = {
'oppia-android': {
@@ -35,7 +37,8 @@ const checksWhitelist = {
[synchronizeEvent]: [mergeConflictCheck, jobCheck],
[closeEvent]: [allMergeConflictCheck],
[editEvent]: [wipCheck],
- [issuesLabelEvent]: [issuesLabelCheck]
+ [issuesLabelEvent]: [issuesLabelCheck],
+ [issuesAssignedEvent]: [issuesAssignedCheck]
},
'oppiabot': {
[openEvent]: [claCheck],
@@ -53,6 +56,7 @@ module.exports.synchronizeEvent = synchronizeEvent;
module.exports.closeEvent = closeEvent;
module.exports.editEvent = editEvent;
module.exports.issuesLabelEvent = issuesLabelEvent
+module.exports.issuesAssignedEvent = issuesAssignedEvent
module.exports.claCheck = claCheck;
module.exports.changelogCheck = changelogCheck;
@@ -63,6 +67,7 @@ module.exports.mergeConflictCheck = mergeConflictCheck;
module.exports.allMergeConflictCheck = allMergeConflictCheck;
module.exports.jobCheck = jobCheck;
module.exports.issuesLabelCheck = issuesLabelCheck
+module.exports.issuesAssignedCheck = issuesAssignedCheck
module.exports.getChecksWhitelist = function() {
return checksWhitelist;
diff --git a/fixtures/issues.assigned.json b/fixtures/issues.assigned.json
new file mode 100644
index 00000000..35d7b109
--- /dev/null
+++ b/fixtures/issues.assigned.json
@@ -0,0 +1,209 @@
+{
+ "action": "assigned",
+ "issue": {
+ "url": "https://api.github.com/repos/jameesjohn/comment-on-pr/issues/34",
+ "repository_url": "https://api.github.com/repos/jameesjohn/comment-on-pr",
+ "labels_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/issues/34/labels{/name}",
+ "comments_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/issues/34/comments",
+ "events_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/issues/34/events",
+ "html_url": "https://github.com/jameesjohn/comment-on-pr/issues/34",
+ "id": 640303691,
+ "node_id": "MDU6SXNzdWU2NDAzMDM2OTE=",
+ "number": 34,
+ "title": "Testing Issues assigned",
+ "user": {
+ "login": "jameesjohn",
+ "id": 31052489,
+ "node_id": "MDQ6VXNlcjMxMDUyNDg5",
+ "avatar_url": "https://avatars1.githubusercontent.com/u/31052489?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/jameesjohn",
+ "html_url": "https://github.com/jameesjohn",
+ "followers_url": "https://api.github.com/users/jameesjohn/followers",
+ "following_url": "https://api.github.com/users/jameesjohn/following{/other_user}",
+ "gists_url": "https://api.github.com/users/jameesjohn/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/jameesjohn/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/jameesjohn/subscriptions",
+ "organizations_url": "https://api.github.com/users/jameesjohn/orgs",
+ "repos_url": "https://api.github.com/users/jameesjohn/repos",
+ "events_url": "https://api.github.com/users/jameesjohn/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/jameesjohn/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "labels": [
+
+ ],
+ "state": "open",
+ "locked": false,
+ "assignee": null,
+ "assignees": [
+ {
+ "login": "jameesjohn",
+ "id": 31052489,
+ "node_id": "MDQ6VXNlcjMxMDUyNDg5",
+ "avatar_url": "https://avatars1.githubusercontent.com/u/31052489?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/jameesjohn",
+ "html_url": "https://github.com/jameesjohn",
+ "followers_url": "https://api.github.com/users/jameesjohn/followers",
+ "following_url": "https://api.github.com/users/jameesjohn/following{/other_user}",
+ "gists_url": "https://api.github.com/users/jameesjohn/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/jameesjohn/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/jameesjohn/subscriptions",
+ "organizations_url": "https://api.github.com/users/jameesjohn/orgs",
+ "repos_url": "https://api.github.com/users/jameesjohn/repos",
+ "events_url": "https://api.github.com/users/jameesjohn/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/jameesjohn/received_events",
+ "type": "User",
+ "site_admin": false
+ }
+ ],
+ "milestone": null,
+ "comments": 1,
+ "created_at": "2020-06-17T09:50:03Z",
+ "updated_at": "2020-06-22T13:30:50Z",
+ "closed_at": null,
+ "author_association": "OWNER",
+ "active_lock_reason": null,
+ "body": ""
+ },
+ "assignee": {
+ "login": "test_user",
+ "id": 31052489,
+ "node_id": "MDQ6VXNlcjMxMDUyNDg5",
+ "avatar_url": "https://avatars1.githubusercontent.com/u/31052489?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/jameesjohn",
+ "html_url": "https://github.com/jameesjohn",
+ "followers_url": "https://api.github.com/users/jameesjohn/followers",
+ "following_url": "https://api.github.com/users/jameesjohn/following{/other_user}",
+ "gists_url": "https://api.github.com/users/jameesjohn/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/jameesjohn/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/jameesjohn/subscriptions",
+ "organizations_url": "https://api.github.com/users/jameesjohn/orgs",
+ "repos_url": "https://api.github.com/users/jameesjohn/repos",
+ "events_url": "https://api.github.com/users/jameesjohn/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/jameesjohn/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "repository": {
+ "id": 247711605,
+ "node_id": "MDEwOlJlcG9zaXRvcnkyNDc3MTE2MDU=",
+ "name": "oppia",
+ "full_name": "jameesjohn/comment-on-pr",
+ "private": false,
+ "owner": {
+ "login": "oppia",
+ "id": 31052489,
+ "node_id": "MDQ6VXNlcjMxMDUyNDg5",
+ "avatar_url": "https://avatars1.githubusercontent.com/u/31052489?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/jameesjohn",
+ "html_url": "https://github.com/jameesjohn",
+ "followers_url": "https://api.github.com/users/jameesjohn/followers",
+ "following_url": "https://api.github.com/users/jameesjohn/following{/other_user}",
+ "gists_url": "https://api.github.com/users/jameesjohn/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/jameesjohn/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/jameesjohn/subscriptions",
+ "organizations_url": "https://api.github.com/users/jameesjohn/orgs",
+ "repos_url": "https://api.github.com/users/jameesjohn/repos",
+ "events_url": "https://api.github.com/users/jameesjohn/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/jameesjohn/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "html_url": "https://github.com/jameesjohn/comment-on-pr",
+ "description": "Simple repo to learn about github actions",
+ "fork": false,
+ "url": "https://api.github.com/repos/jameesjohn/comment-on-pr",
+ "forks_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/forks",
+ "keys_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/keys{/key_id}",
+ "collaborators_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/collaborators{/collaborator}",
+ "teams_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/teams",
+ "hooks_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/hooks",
+ "issue_events_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/issues/events{/number}",
+ "events_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/events",
+ "assignees_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/assignees{/user}",
+ "branches_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/branches{/branch}",
+ "tags_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/tags",
+ "blobs_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/git/blobs{/sha}",
+ "git_tags_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/git/tags{/sha}",
+ "git_refs_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/git/refs{/sha}",
+ "trees_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/git/trees{/sha}",
+ "statuses_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/statuses/{sha}",
+ "languages_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/languages",
+ "stargazers_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/stargazers",
+ "contributors_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/contributors",
+ "subscribers_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/subscribers",
+ "subscription_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/subscription",
+ "commits_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/commits{/sha}",
+ "git_commits_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/git/commits{/sha}",
+ "comments_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/comments{/number}",
+ "issue_comment_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/issues/comments{/number}",
+ "contents_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/contents/{+path}",
+ "compare_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/compare/{base}...{head}",
+ "merges_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/merges",
+ "archive_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/{archive_format}{/ref}",
+ "downloads_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/downloads",
+ "issues_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/issues{/number}",
+ "pulls_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/pulls{/number}",
+ "milestones_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/milestones{/number}",
+ "notifications_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/notifications{?since,all,participating}",
+ "labels_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/labels{/name}",
+ "releases_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/releases{/id}",
+ "deployments_url": "https://api.github.com/repos/jameesjohn/comment-on-pr/deployments",
+ "created_at": "2020-03-16T13:38:10Z",
+ "updated_at": "2020-06-22T12:59:38Z",
+ "pushed_at": "2020-06-22T12:59:36Z",
+ "git_url": "git://github.com/jameesjohn/comment-on-pr.git",
+ "ssh_url": "git@github.com:jameesjohn/comment-on-pr.git",
+ "clone_url": "https://github.com/jameesjohn/comment-on-pr.git",
+ "svn_url": "https://github.com/jameesjohn/comment-on-pr",
+ "homepage": null,
+ "size": 1077,
+ "stargazers_count": 0,
+ "watchers_count": 0,
+ "language": "JavaScript",
+ "has_issues": true,
+ "has_projects": true,
+ "has_downloads": true,
+ "has_wiki": true,
+ "has_pages": false,
+ "forks_count": 2,
+ "mirror_url": null,
+ "archived": false,
+ "disabled": false,
+ "open_issues_count": 10,
+ "license": null,
+ "forks": 2,
+ "open_issues": 10,
+ "watchers": 0,
+ "default_branch": "master"
+ },
+ "sender": {
+ "login": "jameesjohn",
+ "id": 31052489,
+ "node_id": "MDQ6VXNlcjMxMDUyNDg5",
+ "avatar_url": "https://avatars1.githubusercontent.com/u/31052489?v=4",
+ "gravatar_id": "",
+ "url": "https://api.github.com/users/jameesjohn",
+ "html_url": "https://github.com/jameesjohn",
+ "followers_url": "https://api.github.com/users/jameesjohn/followers",
+ "following_url": "https://api.github.com/users/jameesjohn/following{/other_user}",
+ "gists_url": "https://api.github.com/users/jameesjohn/gists{/gist_id}",
+ "starred_url": "https://api.github.com/users/jameesjohn/starred{/owner}{/repo}",
+ "subscriptions_url": "https://api.github.com/users/jameesjohn/subscriptions",
+ "organizations_url": "https://api.github.com/users/jameesjohn/orgs",
+ "repos_url": "https://api.github.com/users/jameesjohn/repos",
+ "events_url": "https://api.github.com/users/jameesjohn/events{/privacy}",
+ "received_events_url": "https://api.github.com/users/jameesjohn/received_events",
+ "type": "User",
+ "site_admin": false
+ },
+ "installation": {
+ "id": 6909030,
+ "node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uNjkwOTAzMA=="
+ }
+}
diff --git a/package-lock.json b/package-lock.json
index 886cb36a..8b76d44e 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1023,6 +1023,11 @@
"integrity": "sha512-hHUXGagefjN2iRrID63xckIvotOXOojhQKWIPUZ4mNUZ9nLZW+7FMNoE1lOkEhNWYsx/7ysGIuJYCiMAA9FnrA==",
"dev": true
},
+ "ansi-escapes": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz",
+ "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ=="
+ },
"ansi-regex": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
@@ -1654,6 +1659,92 @@
}
}
},
+ "cli-truncate": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz",
+ "integrity": "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==",
+ "dev": true,
+ "requires": {
+ "slice-ansi": "^3.0.0",
+ "string-width": "^4.2.0"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz",
+ "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==",
+ "dev": true
+ },
+ "ansi-styles": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
+ "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
+ "dev": true,
+ "requires": {
+ "@types/color-name": "^1.1.1",
+ "color-convert": "^2.0.1"
+ }
+ },
+ "color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "requires": {
+ "color-name": "~1.1.4"
+ }
+ },
+ "color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true
+ },
+ "emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "dev": true
+ },
+ "is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "dev": true
+ },
+ "slice-ansi": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz",
+ "integrity": "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^4.0.0",
+ "astral-regex": "^2.0.0",
+ "is-fullwidth-code-point": "^3.0.0"
+ }
+ },
+ "string-width": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz",
+ "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==",
+ "dev": true,
+ "requires": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.0"
+ }
+ },
+ "strip-ansi": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz",
+ "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^5.0.0"
+ }
+ }
+ }
+ },
"cli-width": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz",
@@ -1917,6 +2008,39 @@
}
}
},
+ "cosmiconfig": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-6.0.0.tgz",
+ "integrity": "sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==",
+ "dev": true,
+ "requires": {
+ "@types/parse-json": "^4.0.0",
+ "import-fresh": "^3.1.0",
+ "parse-json": "^5.0.0",
+ "path-type": "^4.0.0",
+ "yaml": "^1.7.2"
+ },
+ "dependencies": {
+ "parse-json": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz",
+ "integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "^7.0.0",
+ "error-ex": "^1.3.1",
+ "json-parse-better-errors": "^1.0.1",
+ "lines-and-columns": "^1.1.6"
+ }
+ },
+ "path-type": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",
+ "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",
+ "dev": true
+ }
+ }
+ },
"cross-spawn": {
"version": "6.0.5",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",
@@ -2963,6 +3087,11 @@
"integrity": "sha512-I0UBV/XOz1XkIJHEUDMZAbzCThU/H8DxmSfmdGcKPnVhu2VfFqr34jr9777IyaTYvxjedWhqVIilEDsCdP5G6g==",
"dev": true
},
+ "get-stdin": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-6.0.0.tgz",
+ "integrity": "sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g=="
+ },
"get-stream": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz",
@@ -3586,8 +3715,7 @@
"ignore": {
"version": "3.3.10",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.10.tgz",
- "integrity": "sha512-Pgs951kaMm5GXP7MOvxERINe3gsaVjUWFm+UZPSq9xYriQAksyhg0csnS0KXSNRD5NmNdapXEpjxG49+AKh/ug==",
- "dev": true
+ "integrity": "sha512-Pgs951kaMm5GXP7MOvxERINe3gsaVjUWFm+UZPSq9xYriQAksyhg0csnS0KXSNRD5NmNdapXEpjxG49+AKh/ug=="
},
"ignore-by-default": {
"version": "1.0.1",
@@ -3648,321 +3776,1004 @@
"resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz",
"integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw=="
},
+ "inquirer": {
+ "version": "3.3.0",
+ "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-3.3.0.tgz",
+ "integrity": "sha512-h+xtnyk4EwKvFWHrUYsWErEVR+igKtLdchu+o0Z1RL7VU/jVMFbYir2bp6bAj8efFNxWqHX0dIss6fJQ+/+qeQ==",
+ "requires": {
+ "ansi-escapes": "^3.0.0",
+ "chalk": "^2.0.0",
+ "cli-cursor": "^2.1.0",
+ "cli-width": "^2.0.0",
+ "external-editor": "^2.0.4",
+ "figures": "^2.0.0",
+ "lodash": "^4.3.0",
+ "mute-stream": "0.0.7",
+ "run-async": "^2.2.0",
+ "rx-lite": "^4.0.8",
+ "rx-lite-aggregates": "^4.0.8",
+ "string-width": "^2.1.0",
+ "strip-ansi": "^4.0.0",
+ "through": "^2.3.6"
+ }
+ },
"interpret": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/interpret/-/interpret-1.2.0.tgz",
"integrity": "sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw==",
"dev": true
},
- "ioredis": {
- "version": "4.16.3",
- "resolved": "https://registry.npmjs.org/ioredis/-/ioredis-4.16.3.tgz",
- "integrity": "sha512-Ejvcs2yW19Vq8AipvbtfcX3Ig8XG9EAyFOvGbhI/Q1QoVOK9ZdgY092kdOyOWIYBnPHjfjMJhU9qhsnp0i0K1w==",
+ "husky": {
+ "version": "4.2.5",
+ "resolved": "https://registry.npmjs.org/husky/-/husky-4.2.5.tgz",
+ "integrity": "sha512-SYZ95AjKcX7goYVZtVZF2i6XiZcHknw50iXvY7b0MiGoj5RwdgRQNEHdb+gPDPCXKlzwrybjFjkL6FOj8uRhZQ==",
+ "dev": true,
"requires": {
- "cluster-key-slot": "^1.1.0",
- "debug": "^4.1.1",
- "denque": "^1.1.0",
- "lodash.defaults": "^4.2.0",
- "lodash.flatten": "^4.4.0",
- "redis-commands": "1.5.0",
- "redis-errors": "^1.2.0",
- "redis-parser": "^3.0.0",
- "standard-as-callback": "^2.0.1"
+ "chalk": "^4.0.0",
+ "ci-info": "^2.0.0",
+ "compare-versions": "^3.6.0",
+ "cosmiconfig": "^6.0.0",
+ "find-versions": "^3.2.0",
+ "opencollective-postinstall": "^2.0.2",
+ "pkg-dir": "^4.2.0",
+ "please-upgrade-node": "^3.2.0",
+ "slash": "^3.0.0",
+ "which-pm-runs": "^1.0.0"
},
"dependencies": {
- "debug": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
- "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
+ "ansi-styles": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
+ "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
+ "dev": true,
"requires": {
- "ms": "^2.1.1"
+ "@types/color-name": "^1.1.1",
+ "color-convert": "^2.0.1"
}
},
- "ms": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
- "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
- }
- }
- },
- "ipaddr.js": {
- "version": "1.9.0",
- "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.0.tgz",
- "integrity": "sha512-M4Sjn6N/+O6/IXSJseKqHoFc+5FdGJ22sXqnjTpdZweHK64MzEPAyQZyEU3R/KRv2GLoa7nNtg/C2Ev6m7z+eA=="
- },
- "is-arrayish": {
- "version": "0.2.1",
- "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
- "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0="
- },
- "is-base64": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/is-base64/-/is-base64-1.1.0.tgz",
- "integrity": "sha512-Nlhg7Z2dVC4/PTvIFkgVVNvPHSO2eR/Yd0XzhGiXCXEvWnptXlXa/clQ8aePPiMuxEGcWfzWbGw2Fe3d+Y3v1g=="
- },
- "is-binary-path": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
- "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
- "dev": true,
- "requires": {
- "binary-extensions": "^2.0.0"
- }
- },
- "is-callable": {
- "version": "1.1.5",
- "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.5.tgz",
- "integrity": "sha512-ESKv5sMCJB2jnHTWZ3O5itG+O128Hsus4K4Qh1h2/cgn2vbgnLSVqfV46AeJA9D5EeeLa9w81KUXMtn34zhX+Q==",
- "dev": true
- },
- "is-ci": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz",
- "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==",
- "requires": {
- "ci-info": "^2.0.0"
- }
- },
- "is-date-object": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz",
- "integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==",
- "dev": true
- },
- "is-extglob": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
- "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=",
- "dev": true
- },
- "is-fullwidth-code-point": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
- "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8="
- },
- "is-glob": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz",
- "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==",
- "dev": true,
- "requires": {
- "is-extglob": "^2.1.1"
- }
- },
- "is-installed-globally": {
- "version": "0.3.2",
- "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.3.2.tgz",
- "integrity": "sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g==",
- "requires": {
- "global-dirs": "^2.0.1",
- "is-path-inside": "^3.0.1"
- }
- },
- "is-my-ip-valid": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/is-my-ip-valid/-/is-my-ip-valid-1.0.0.tgz",
- "integrity": "sha512-gmh/eWXROncUzRnIa1Ubrt5b8ep/MGSnfAUI3aRp+sqTCs1tv1Isl8d8F6JmkN3dXKc3ehZMrtiPN9eL03NuaQ==",
- "dev": true
- },
+ "chalk": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.0.0.tgz",
+ "integrity": "sha512-N9oWFcegS0sFr9oh1oz2d7Npos6vNoWW9HvtCg5N1KRFpUhaAhvTv5Y58g880fZaEYSNm3qDz8SU1UrGvp+n7A==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ }
+ },
+ "color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "requires": {
+ "color-name": "~1.1.4"
+ }
+ },
+ "color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true
+ },
+ "find-up": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
+ "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
+ "dev": true,
+ "requires": {
+ "locate-path": "^5.0.0",
+ "path-exists": "^4.0.0"
+ }
+ },
+ "has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true
+ },
+ "locate-path": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
+ "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
+ "dev": true,
+ "requires": {
+ "p-locate": "^4.1.0"
+ }
+ },
+ "p-limit": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
+ "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
+ "dev": true,
+ "requires": {
+ "p-try": "^2.0.0"
+ }
+ },
+ "p-locate": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
+ "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
+ "dev": true,
+ "requires": {
+ "p-limit": "^2.2.0"
+ }
+ },
+ "p-try": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
+ "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
+ "dev": true
+ },
+ "path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "dev": true
+ },
+ "pkg-dir": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz",
+ "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==",
+ "dev": true,
+ "requires": {
+ "find-up": "^4.0.0"
+ }
+ },
+ "supports-color": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz",
+ "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==",
+ "dev": true,
+ "requires": {
+ "has-flag": "^4.0.0"
+ }
+ }
+ }
+ },
+ "iconv-lite": {
+ "version": "0.4.24",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
+ "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
+ "requires": {
+ "safer-buffer": ">= 2.1.2 < 3"
+ }
+ },
+ "ignore": {
+ "version": "3.3.10",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.10.tgz",
+ "integrity": "sha512-Pgs951kaMm5GXP7MOvxERINe3gsaVjUWFm+UZPSq9xYriQAksyhg0csnS0KXSNRD5NmNdapXEpjxG49+AKh/ug==",
+ "dev": true
+ },
+ "ignore-by-default": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz",
+ "integrity": "sha1-SMptcvbGo68Aqa1K5odr44ieKwk=",
+ "dev": true
+ },
+ "import-fresh": {
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz",
+ "integrity": "sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==",
+ "dev": true,
+ "requires": {
+ "parent-module": "^1.0.0",
+ "resolve-from": "^4.0.0"
+ },
+ "dependencies": {
+ "resolve-from": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
+ "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
+ "dev": true
+ }
+ }
+ },
+ "import-lazy": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz",
+ "integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM="
+ },
+ "imurmurhash": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
+ "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o="
+ },
+ "indent-string": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz",
+ "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==",
+ "dev": true
+ },
+ "inflight": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
+ "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
+ "requires": {
+ "once": "^1.3.0",
+ "wrappy": "1"
+ }
+ },
+ "inherits": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
+ },
+ "ini": {
+ "version": "1.3.5",
+ "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz",
+ "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw=="
+ },
+ "interpret": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.2.0.tgz",
+ "integrity": "sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw==",
+ "dev": true
+ },
+ "ioredis": {
+ "version": "4.16.3",
+ "resolved": "https://registry.npmjs.org/ioredis/-/ioredis-4.16.3.tgz",
+ "integrity": "sha512-Ejvcs2yW19Vq8AipvbtfcX3Ig8XG9EAyFOvGbhI/Q1QoVOK9ZdgY092kdOyOWIYBnPHjfjMJhU9qhsnp0i0K1w==",
+ "requires": {
+ "cluster-key-slot": "^1.1.0",
+ "debug": "^4.1.1",
+ "denque": "^1.1.0",
+ "lodash.defaults": "^4.2.0",
+ "lodash.flatten": "^4.4.0",
+ "redis-commands": "1.5.0",
+ "redis-errors": "^1.2.0",
+ "redis-parser": "^3.0.0",
+ "standard-as-callback": "^2.0.1"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
+ "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
+ }
+ }
+ },
+ "ipaddr.js": {
+ "version": "1.9.0",
+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.0.tgz",
+ "integrity": "sha512-M4Sjn6N/+O6/IXSJseKqHoFc+5FdGJ22sXqnjTpdZweHK64MzEPAyQZyEU3R/KRv2GLoa7nNtg/C2Ev6m7z+eA=="
+ },
+ "is-arrayish": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
+ "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0="
+ },
+ "is-base64": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/is-base64/-/is-base64-1.1.0.tgz",
+ "integrity": "sha512-Nlhg7Z2dVC4/PTvIFkgVVNvPHSO2eR/Yd0XzhGiXCXEvWnptXlXa/clQ8aePPiMuxEGcWfzWbGw2Fe3d+Y3v1g=="
+ },
+ "is-binary-path": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
+ "dev": true,
+ "requires": {
+ "binary-extensions": "^2.0.0"
+ }
+ },
+ "is-callable": {
+ "version": "1.1.5",
+ "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.5.tgz",
+ "integrity": "sha512-ESKv5sMCJB2jnHTWZ3O5itG+O128Hsus4K4Qh1h2/cgn2vbgnLSVqfV46AeJA9D5EeeLa9w81KUXMtn34zhX+Q==",
+ "dev": true
+ },
+ "is-ci": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz",
+ "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==",
+ "requires": {
+ "ci-info": "^2.0.0"
+ }
+ },
+ "is-date-object": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz",
+ "integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==",
+ "dev": true
+ },
+ "is-extglob": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
+ "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=",
+ "dev": true
+ },
+ "is-fullwidth-code-point": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
+ "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8="
+ },
+ "is-glob": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz",
+ "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==",
+ "dev": true,
+ "requires": {
+ "is-extglob": "^2.1.1"
+ }
+ },
+ "is-installed-globally": {
+ "version": "0.3.2",
+ "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.3.2.tgz",
+ "integrity": "sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g==",
+ "requires": {
+ "global-dirs": "^2.0.1",
+ "is-path-inside": "^3.0.1"
+ }
+ },
+ "is-my-ip-valid": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-my-ip-valid/-/is-my-ip-valid-1.0.0.tgz",
+ "integrity": "sha512-gmh/eWXROncUzRnIa1Ubrt5b8ep/MGSnfAUI3aRp+sqTCs1tv1Isl8d8F6JmkN3dXKc3ehZMrtiPN9eL03NuaQ==",
+ "dev": true
+ },
"is-my-json-valid": {
"version": "2.20.0",
"resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.20.0.tgz",
"integrity": "sha512-XTHBZSIIxNsIsZXg7XB5l8z/OBFosl1Wao4tXLpeC7eKU4Vm/kdop2azkPqULwnfGQjmeDIyey9g7afMMtdWAA==",
"dev": true,
"requires": {
- "generate-function": "^2.0.0",
- "generate-object-property": "^1.1.0",
- "is-my-ip-valid": "^1.0.0",
- "jsonpointer": "^4.0.0",
- "xtend": "^4.0.0"
+ "generate-function": "^2.0.0",
+ "generate-object-property": "^1.1.0",
+ "is-my-ip-valid": "^1.0.0",
+ "jsonpointer": "^4.0.0",
+ "xtend": "^4.0.0"
+ },
+ "dependencies": {
+ "xtend": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",
+ "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",
+ "dev": true
+ }
+ }
+ },
+ "is-npm": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-4.0.0.tgz",
+ "integrity": "sha512-96ECIfh9xtDDlPylNPXhzjsykHsMJZ18ASpaWzQyBr4YRTcVjUvzaHayDAES2oU/3KpljhHUjtSRNiDwi0F0ig=="
+ },
+ "is-number": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
+ "dev": true
+ },
+ "is-obj": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz",
+ "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w=="
+ },
+ "is-path-inside": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.2.tgz",
+ "integrity": "sha512-/2UGPSgmtqwo1ktx8NDHjuPwZWmHhO+gj0f93EkhLB5RgW9RZevWYYlIkS6zePc6U2WpOdQYIwHe9YC4DWEBVg=="
+ },
+ "is-plain-object": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-3.0.0.tgz",
+ "integrity": "sha512-tZIpofR+P05k8Aocp7UI/2UTa9lTJSebCXpFFoR9aibpokDj/uXBsJ8luUu0tTVYKkMU6URDUuOfJZ7koewXvg==",
+ "requires": {
+ "isobject": "^4.0.0"
+ }
+ },
+ "is-property": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz",
+ "integrity": "sha1-V/4cTkhHTt1lsJkR8msc1Ald2oQ=",
+ "dev": true
+ },
+ "is-regex": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.5.tgz",
+ "integrity": "sha512-vlKW17SNq44owv5AQR3Cq0bQPEb8+kF3UKZ2fiZNOWtztYE5i0CzCZxFDwO58qAOWtxdBRVO/V5Qin1wjCqFYQ==",
+ "dev": true,
+ "requires": {
+ "has": "^1.0.3"
+ }
+ },
+ "is-regexp": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz",
+ "integrity": "sha1-/S2INUXEa6xaYz57mgnof6LLUGk=",
+ "dev": true
+ },
+ "is-resolvable": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.1.0.tgz",
+ "integrity": "sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==",
+ "dev": true
+ },
+ "is-stream": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz",
+ "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ="
+ },
+ "is-symbol": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz",
+ "integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==",
+ "dev": true,
+ "requires": {
+ "has-symbols": "^1.0.1"
+ }
+ },
+ "is-typedarray": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
+ "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo="
+ },
+ "is-windows": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz",
+ "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==",
+ "dev": true
+ },
+ "is-yarn-global": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz",
+ "integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw=="
+ },
+ "isarray": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
+ "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
+ "dev": true
+ },
+ "isexe": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
+ "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA="
+ },
+ "isobject": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/isobject/-/isobject-4.0.0.tgz",
+ "integrity": "sha512-S/2fF5wH8SJA/kmwr6HYhK/RI/OkhD84k8ntalo0iJjZikgq1XFvR5M8NPT1x5F7fBwCG3qHfnzeP/Vh/ZxCUA=="
+ },
+ "istanbul-lib-coverage": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz",
+ "integrity": "sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg==",
+ "dev": true
+ },
+ "istanbul-lib-hook": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/istanbul-lib-hook/-/istanbul-lib-hook-3.0.0.tgz",
+ "integrity": "sha512-Pt/uge1Q9s+5VAZ+pCo16TYMWPBIl+oaNIjgLQxcX0itS6ueeaA+pEfThZpH8WxhFgCiEb8sAJY6MdUKgiIWaQ==",
+ "dev": true,
+ "requires": {
+ "append-transform": "^2.0.0"
+ }
+ },
+ "istanbul-lib-instrument": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.1.tgz",
+ "integrity": "sha512-imIchxnodll7pvQBYOqUu88EufLCU56LMeFPZZM/fJZ1irYcYdqroaV+ACK1Ila8ls09iEYArp+nqyC6lW1Vfg==",
+ "dev": true,
+ "requires": {
+ "@babel/core": "^7.7.5",
+ "@babel/parser": "^7.7.5",
+ "@babel/template": "^7.7.4",
+ "@babel/traverse": "^7.7.4",
+ "@istanbuljs/schema": "^0.1.2",
+ "istanbul-lib-coverage": "^3.0.0",
+ "semver": "^6.3.0"
+ },
+ "dependencies": {
+ "semver": {
+ "version": "6.3.0",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
+ "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
+ "dev": true
+ }
+ }
+ },
+ "istanbul-lib-processinfo": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/istanbul-lib-processinfo/-/istanbul-lib-processinfo-2.0.2.tgz",
+ "integrity": "sha512-kOwpa7z9hme+IBPZMzQ5vdQj8srYgAtaRqeI48NGmAQ+/5yKiHLV0QbYqQpxsdEF0+w14SoB8YbnHKcXE2KnYw==",
+ "dev": true,
+ "requires": {
+ "archy": "^1.0.0",
+ "cross-spawn": "^7.0.0",
+ "istanbul-lib-coverage": "^3.0.0-alpha.1",
+ "make-dir": "^3.0.0",
+ "p-map": "^3.0.0",
+ "rimraf": "^3.0.0",
+ "uuid": "^3.3.3"
},
"dependencies": {
- "xtend": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",
- "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",
+ "cross-spawn": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.2.tgz",
+ "integrity": "sha512-PD6G8QG3S4FK/XCGFbEQrDqO2AnMMsy0meR7lerlIOHAAbkuavGU/pOqprrlvfTNjvowivTeBsjebAL0NSoMxw==",
+ "dev": true,
+ "requires": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ }
+ },
+ "glob": {
+ "version": "7.1.6",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
+ "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
+ "dev": true,
+ "requires": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.0.4",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ }
+ },
+ "path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "dev": true
+ },
+ "rimraf": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
+ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
+ "dev": true,
+ "requires": {
+ "glob": "^7.1.3"
+ }
+ },
+ "shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dev": true,
+ "requires": {
+ "shebang-regex": "^3.0.0"
+ }
+ },
+ "shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
"dev": true
+ },
+ "which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dev": true,
+ "requires": {
+ "isexe": "^2.0.0"
+ }
}
}
},
- "is-npm": {
+ "istanbul-lib-report": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz",
+ "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==",
+ "dev": true,
+ "requires": {
+ "istanbul-lib-coverage": "^3.0.0",
+ "make-dir": "^3.0.0",
+ "supports-color": "^7.1.0"
+ },
+ "dependencies": {
+ "has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true
+ },
+ "supports-color": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz",
+ "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==",
+ "dev": true,
+ "requires": {
+ "has-flag": "^4.0.0"
+ }
+ }
+ }
+ },
+ "istanbul-lib-source-maps": {
"version": "4.0.0",
- "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-4.0.0.tgz",
- "integrity": "sha512-96ECIfh9xtDDlPylNPXhzjsykHsMJZ18ASpaWzQyBr4YRTcVjUvzaHayDAES2oU/3KpljhHUjtSRNiDwi0F0ig=="
+ "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.0.tgz",
+ "integrity": "sha512-c16LpFRkR8vQXyHZ5nLpY35JZtzj1PQY1iZmesUbf1FZHbIupcWfjgOXBY9YHkLEQ6puz1u4Dgj6qmU/DisrZg==",
+ "dev": true,
+ "requires": {
+ "debug": "^4.1.1",
+ "istanbul-lib-coverage": "^3.0.0",
+ "source-map": "^0.6.1"
+ },
+ "dependencies": {
+ "debug": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
+ "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
+ "dev": true,
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+ "dev": true
+ }
+ }
},
- "is-number": {
- "version": "7.0.0",
- "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
- "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
- "dev": true
+ "istanbul-reports": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.0.2.tgz",
+ "integrity": "sha512-9tZvz7AiR3PEDNGiV9vIouQ/EAcqMXFmkcA1CDFTwOB98OZVDL0PH9glHotf5Ugp6GCOTypfzGWI/OqjWNCRUw==",
+ "dev": true,
+ "requires": {
+ "html-escaper": "^2.0.0",
+ "istanbul-lib-report": "^3.0.0"
+ }
},
- "is-obj": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz",
- "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w=="
+ "jasmine": {
+ "version": "3.5.0",
+ "resolved": "https://registry.npmjs.org/jasmine/-/jasmine-3.5.0.tgz",
+ "integrity": "sha512-DYypSryORqzsGoMazemIHUfMkXM7I7easFaxAvNM3Mr6Xz3Fy36TupTrAOxZWN8MVKEU5xECv22J4tUQf3uBzQ==",
+ "dev": true,
+ "requires": {
+ "glob": "^7.1.4",
+ "jasmine-core": "~3.5.0"
+ },
+ "dependencies": {
+ "glob": {
+ "version": "7.1.6",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
+ "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
+ "dev": true,
+ "requires": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.0.4",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ }
+ }
+ }
},
- "is-path-inside": {
+ "jasmine-core": {
+ "version": "3.5.0",
+ "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-3.5.0.tgz",
+ "integrity": "sha512-nCeAiw37MIMA9w9IXso7bRaLl+c/ef3wnxsoSAlYrzS+Ot0zTG6nU8G/cIfGkqpkjX2wNaIW9RFG0TwIFnG6bA==",
+ "dev": true
+ },
+ "js-tokens": {
"version": "3.0.2",
- "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.2.tgz",
- "integrity": "sha512-/2UGPSgmtqwo1ktx8NDHjuPwZWmHhO+gj0f93EkhLB5RgW9RZevWYYlIkS6zePc6U2WpOdQYIwHe9YC4DWEBVg=="
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz",
+ "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=",
+ "dev": true
},
- "is-plain-object": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-3.0.0.tgz",
- "integrity": "sha512-tZIpofR+P05k8Aocp7UI/2UTa9lTJSebCXpFFoR9aibpokDj/uXBsJ8luUu0tTVYKkMU6URDUuOfJZ7koewXvg==",
+ "js-yaml": {
+ "version": "3.13.1",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz",
+ "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==",
"requires": {
- "isobject": "^4.0.0"
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
}
},
- "is-property": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz",
- "integrity": "sha1-V/4cTkhHTt1lsJkR8msc1Ald2oQ=",
+ "jsesc": {
+ "version": "2.5.2",
+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz",
+ "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==",
"dev": true
},
- "is-regex": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.5.tgz",
- "integrity": "sha512-vlKW17SNq44owv5AQR3Cq0bQPEb8+kF3UKZ2fiZNOWtztYE5i0CzCZxFDwO58qAOWtxdBRVO/V5Qin1wjCqFYQ==",
+ "json-bigint": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-0.3.0.tgz",
+ "integrity": "sha1-DM2RLEuCcNBfBW+9E4FLU9OCWx4=",
+ "requires": {
+ "bignumber.js": "^7.0.0"
+ }
+ },
+ "json-buffer": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz",
+ "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg="
+ },
+ "json-parse-better-errors": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz",
+ "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw=="
+ },
+ "json-stable-stringify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz",
+ "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=",
+ "dev": true,
+ "requires": {
+ "jsonify": "~0.0.0"
+ }
+ },
+ "json-stringify-safe": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
+ "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus="
+ },
+ "json5": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.1.3.tgz",
+ "integrity": "sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA==",
"dev": true,
"requires": {
- "has": "^1.0.3"
+ "minimist": "^1.2.5"
+ },
+ "dependencies": {
+ "minimist": {
+ "version": "1.2.5",
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
+ "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
+ "dev": true
+ }
}
},
- "is-regexp": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz",
- "integrity": "sha1-/S2INUXEa6xaYz57mgnof6LLUGk=",
+ "jsonify": {
+ "version": "0.0.0",
+ "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz",
+ "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=",
"dev": true
},
- "is-resolvable": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.1.0.tgz",
- "integrity": "sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==",
+ "jsonpointer": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-4.0.1.tgz",
+ "integrity": "sha1-T9kss04OnbPInIYi7PUfm5eMbLk=",
"dev": true
},
- "is-stream": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz",
- "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ="
- },
- "is-symbol": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz",
- "integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==",
- "dev": true,
+ "jsonwebtoken": {
+ "version": "8.5.1",
+ "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz",
+ "integrity": "sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==",
"requires": {
- "has-symbols": "^1.0.1"
+ "jws": "^3.2.2",
+ "lodash.includes": "^4.3.0",
+ "lodash.isboolean": "^3.0.3",
+ "lodash.isinteger": "^4.0.4",
+ "lodash.isnumber": "^3.0.3",
+ "lodash.isplainobject": "^4.0.6",
+ "lodash.isstring": "^4.0.1",
+ "lodash.once": "^4.0.0",
+ "ms": "^2.1.1",
+ "semver": "^5.6.0"
+ },
+ "dependencies": {
+ "ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
+ }
}
},
- "is-typedarray": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
- "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo="
- },
- "is-windows": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz",
- "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==",
- "dev": true
- },
- "is-yarn-global": {
- "version": "0.3.0",
- "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz",
- "integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw=="
+ "jsx-ast-utils": {
+ "version": "2.2.3",
+ "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-2.2.3.tgz",
+ "integrity": "sha512-EdIHFMm+1BPynpKOpdPqiOsvnIrInRGJD7bzPZdPkjitQEqpdpUuFpq4T0npZFKTiB3RhWFdGN+oqOJIdhDhQA==",
+ "requires": {
+ "array-includes": "^3.0.3",
+ "object.assign": "^4.1.0"
+ }
},
- "isarray": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
- "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
- "dev": true
+ "jwa": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz",
+ "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==",
+ "requires": {
+ "buffer-equal-constant-time": "1.0.1",
+ "ecdsa-sig-formatter": "1.0.11",
+ "safe-buffer": "^5.0.1"
+ }
},
- "isexe": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
- "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA="
+ "jws": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz",
+ "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==",
+ "requires": {
+ "jwa": "^1.4.1",
+ "safe-buffer": "^5.0.1"
+ }
},
- "isobject": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/isobject/-/isobject-4.0.0.tgz",
- "integrity": "sha512-S/2fF5wH8SJA/kmwr6HYhK/RI/OkhD84k8ntalo0iJjZikgq1XFvR5M8NPT1x5F7fBwCG3qHfnzeP/Vh/ZxCUA=="
+ "keyv": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz",
+ "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==",
+ "requires": {
+ "json-buffer": "3.0.0"
+ }
},
- "istanbul-lib-coverage": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz",
- "integrity": "sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg==",
- "dev": true
+ "latest-version": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz",
+ "integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==",
+ "requires": {
+ "package-json": "^6.3.0"
+ }
},
- "istanbul-lib-hook": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/istanbul-lib-hook/-/istanbul-lib-hook-3.0.0.tgz",
- "integrity": "sha512-Pt/uge1Q9s+5VAZ+pCo16TYMWPBIl+oaNIjgLQxcX0itS6ueeaA+pEfThZpH8WxhFgCiEb8sAJY6MdUKgiIWaQ==",
- "dev": true,
+ "levn": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz",
+ "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=",
"requires": {
- "append-transform": "^2.0.0"
+ "prelude-ls": "~1.1.2",
+ "type-check": "~0.3.2"
}
},
- "istanbul-lib-instrument": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.1.tgz",
- "integrity": "sha512-imIchxnodll7pvQBYOqUu88EufLCU56LMeFPZZM/fJZ1irYcYdqroaV+ACK1Ila8ls09iEYArp+nqyC6lW1Vfg==",
+ "lines-and-columns": {
+ "version": "1.1.6",
+ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz",
+ "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=",
+ "dev": true
+ },
+ "lint-staged": {
+ "version": "10.2.6",
+ "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-10.2.6.tgz",
+ "integrity": "sha512-2oEBWyPZHkdyjKcIv2U6ay80Q52ZMlZZrUnfsV0WTVcgzPlt3o2t5UFy2v8ETUTsIDZ0xSJVnffWCgD3LF6xTQ==",
"dev": true,
"requires": {
- "@babel/core": "^7.7.5",
- "@babel/parser": "^7.7.5",
- "@babel/template": "^7.7.4",
- "@babel/traverse": "^7.7.4",
- "@istanbuljs/schema": "^0.1.2",
- "istanbul-lib-coverage": "^3.0.0",
- "semver": "^6.3.0"
+ "chalk": "^4.0.0",
+ "cli-truncate": "2.1.0",
+ "commander": "^5.1.0",
+ "cosmiconfig": "^6.0.0",
+ "debug": "^4.1.1",
+ "dedent": "^0.7.0",
+ "execa": "^4.0.1",
+ "listr2": "^2.0.2",
+ "log-symbols": "^4.0.0",
+ "micromatch": "^4.0.2",
+ "normalize-path": "^3.0.0",
+ "please-upgrade-node": "^3.2.0",
+ "string-argv": "0.3.1",
+ "stringify-object": "^3.3.0"
},
"dependencies": {
- "semver": {
- "version": "6.3.0",
- "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
- "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
+ "ansi-styles": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
+ "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
+ "dev": true,
+ "requires": {
+ "@types/color-name": "^1.1.1",
+ "color-convert": "^2.0.1"
+ }
+ },
+ "chalk": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.0.0.tgz",
+ "integrity": "sha512-N9oWFcegS0sFr9oh1oz2d7Npos6vNoWW9HvtCg5N1KRFpUhaAhvTv5Y58g880fZaEYSNm3qDz8SU1UrGvp+n7A==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ }
+ },
+ "color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "requires": {
+ "color-name": "~1.1.4"
+ }
+ },
+ "color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true
+ },
+ "commander": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz",
+ "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==",
+ "dev": true
+ },
+ "cross-spawn": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
+ "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
+ "dev": true,
+ "requires": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ }
+ },
+ "debug": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
+ "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
+ "dev": true,
+ "requires": {
+ "ms": "^2.1.1"
+ }
+ },
+ "execa": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/execa/-/execa-4.0.2.tgz",
+ "integrity": "sha512-QI2zLa6CjGWdiQsmSkZoGtDx2N+cQIGb3yNolGTdjSQzydzLgYYf8LRuagp7S7fPimjcrzUDSUFd/MgzELMi4Q==",
+ "dev": true,
+ "requires": {
+ "cross-spawn": "^7.0.0",
+ "get-stream": "^5.0.0",
+ "human-signals": "^1.1.1",
+ "is-stream": "^2.0.0",
+ "merge-stream": "^2.0.0",
+ "npm-run-path": "^4.0.0",
+ "onetime": "^5.1.0",
+ "signal-exit": "^3.0.2",
+ "strip-final-newline": "^2.0.0"
+ }
+ },
+ "get-stream": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz",
+ "integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==",
+ "dev": true,
+ "requires": {
+ "pump": "^3.0.0"
+ }
+ },
+ "has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true
- }
- }
- },
- "istanbul-lib-processinfo": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/istanbul-lib-processinfo/-/istanbul-lib-processinfo-2.0.2.tgz",
- "integrity": "sha512-kOwpa7z9hme+IBPZMzQ5vdQj8srYgAtaRqeI48NGmAQ+/5yKiHLV0QbYqQpxsdEF0+w14SoB8YbnHKcXE2KnYw==",
- "dev": true,
- "requires": {
- "archy": "^1.0.0",
- "cross-spawn": "^7.0.0",
- "istanbul-lib-coverage": "^3.0.0-alpha.1",
- "make-dir": "^3.0.0",
- "p-map": "^3.0.0",
- "rimraf": "^3.0.0",
- "uuid": "^3.3.3"
- },
- "dependencies": {
- "cross-spawn": {
- "version": "7.0.2",
- "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.2.tgz",
- "integrity": "sha512-PD6G8QG3S4FK/XCGFbEQrDqO2AnMMsy0meR7lerlIOHAAbkuavGU/pOqprrlvfTNjvowivTeBsjebAL0NSoMxw==",
+ },
+ "is-stream": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz",
+ "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==",
+ "dev": true
+ },
+ "mimic-fn": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
+ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
+ "dev": true
+ },
+ "ms": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
+ "dev": true
+ },
+ "npm-run-path": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",
+ "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",
"dev": true,
"requires": {
- "path-key": "^3.1.0",
- "shebang-command": "^2.0.0",
- "which": "^2.0.1"
+ "path-key": "^3.0.0"
}
},
- "glob": {
- "version": "7.1.6",
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
- "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
+ "onetime": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.0.tgz",
+ "integrity": "sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q==",
"dev": true,
"requires": {
- "fs.realpath": "^1.0.0",
- "inflight": "^1.0.4",
- "inherits": "2",
- "minimatch": "^3.0.4",
- "once": "^1.3.0",
- "path-is-absolute": "^1.0.0"
+ "mimic-fn": "^2.1.0"
}
},
"path-key": {
@@ -3971,15 +4782,6 @@
"integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
"dev": true
},
- "rimraf": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
- "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
- "dev": true,
- "requires": {
- "glob": "^7.1.3"
- }
- },
"shebang-command": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
@@ -3995,34 +4797,6 @@
"integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
"dev": true
},
- "which": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
- "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
- "dev": true,
- "requires": {
- "isexe": "^2.0.0"
- }
- }
- }
- },
- "istanbul-lib-report": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz",
- "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==",
- "dev": true,
- "requires": {
- "istanbul-lib-coverage": "^3.0.0",
- "make-dir": "^3.0.0",
- "supports-color": "^7.1.0"
- },
- "dependencies": {
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
"supports-color": {
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz",
@@ -4031,240 +4805,154 @@
"requires": {
"has-flag": "^4.0.0"
}
- }
- }
- },
- "istanbul-lib-source-maps": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.0.tgz",
- "integrity": "sha512-c16LpFRkR8vQXyHZ5nLpY35JZtzj1PQY1iZmesUbf1FZHbIupcWfjgOXBY9YHkLEQ6puz1u4Dgj6qmU/DisrZg==",
- "dev": true,
- "requires": {
- "debug": "^4.1.1",
- "istanbul-lib-coverage": "^3.0.0",
- "source-map": "^0.6.1"
- },
- "dependencies": {
- "debug": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
- "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
- "dev": true,
- "requires": {
- "ms": "^2.1.1"
- }
},
- "ms": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
- "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
- "dev": true
- }
- }
- },
- "istanbul-reports": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.0.2.tgz",
- "integrity": "sha512-9tZvz7AiR3PEDNGiV9vIouQ/EAcqMXFmkcA1CDFTwOB98OZVDL0PH9glHotf5Ugp6GCOTypfzGWI/OqjWNCRUw==",
- "dev": true,
- "requires": {
- "html-escaper": "^2.0.0",
- "istanbul-lib-report": "^3.0.0"
- }
- },
- "jasmine": {
- "version": "3.5.0",
- "resolved": "https://registry.npmjs.org/jasmine/-/jasmine-3.5.0.tgz",
- "integrity": "sha512-DYypSryORqzsGoMazemIHUfMkXM7I7easFaxAvNM3Mr6Xz3Fy36TupTrAOxZWN8MVKEU5xECv22J4tUQf3uBzQ==",
- "dev": true,
- "requires": {
- "glob": "^7.1.4",
- "jasmine-core": "~3.5.0"
- },
- "dependencies": {
- "glob": {
- "version": "7.1.6",
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
- "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
+ "which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
"dev": true,
"requires": {
- "fs.realpath": "^1.0.0",
- "inflight": "^1.0.4",
- "inherits": "2",
- "minimatch": "^3.0.4",
- "once": "^1.3.0",
- "path-is-absolute": "^1.0.0"
- }
- }
- }
- },
- "jasmine-core": {
- "version": "3.5.0",
- "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-3.5.0.tgz",
- "integrity": "sha512-nCeAiw37MIMA9w9IXso7bRaLl+c/ef3wnxsoSAlYrzS+Ot0zTG6nU8G/cIfGkqpkjX2wNaIW9RFG0TwIFnG6bA==",
- "dev": true
- },
- "js-tokens": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz",
- "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=",
- "dev": true
- },
- "js-yaml": {
- "version": "3.13.1",
- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz",
- "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==",
- "requires": {
- "argparse": "^1.0.7",
- "esprima": "^4.0.0"
- }
- },
- "jsesc": {
- "version": "2.5.2",
- "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz",
- "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==",
- "dev": true
- },
- "json-bigint": {
- "version": "0.3.0",
- "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-0.3.0.tgz",
- "integrity": "sha1-DM2RLEuCcNBfBW+9E4FLU9OCWx4=",
- "requires": {
- "bignumber.js": "^7.0.0"
- }
- },
- "json-buffer": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz",
- "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg="
- },
- "json-parse-better-errors": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz",
- "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw=="
- },
- "json-stable-stringify": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz",
- "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=",
- "dev": true,
- "requires": {
- "jsonify": "~0.0.0"
- }
- },
- "json-stringify-safe": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
- "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus="
- },
- "json5": {
- "version": "2.1.3",
- "resolved": "https://registry.npmjs.org/json5/-/json5-2.1.3.tgz",
- "integrity": "sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA==",
- "dev": true,
- "requires": {
- "minimist": "^1.2.5"
- },
- "dependencies": {
- "minimist": {
- "version": "1.2.5",
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz",
- "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
- "dev": true
+ "isexe": "^2.0.0"
+ }
}
}
},
- "jsonify": {
- "version": "0.0.0",
- "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz",
- "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=",
- "dev": true
- },
- "jsonpointer": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-4.0.1.tgz",
- "integrity": "sha1-T9kss04OnbPInIYi7PUfm5eMbLk=",
- "dev": true
- },
- "jsonwebtoken": {
- "version": "8.5.1",
- "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz",
- "integrity": "sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==",
+ "listr2": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/listr2/-/listr2-2.0.4.tgz",
+ "integrity": "sha512-oJaAcplPsa72rKW0eg4P4LbEJjhH+UO2I8uqR/I2wzHrVg16ohSfUy0SlcHS21zfYXxtsUpL8YXGHjyfWMR0cg==",
+ "dev": true,
"requires": {
- "jws": "^3.2.2",
- "lodash.includes": "^4.3.0",
- "lodash.isboolean": "^3.0.3",
- "lodash.isinteger": "^4.0.4",
- "lodash.isnumber": "^3.0.3",
- "lodash.isplainobject": "^4.0.6",
- "lodash.isstring": "^4.0.1",
- "lodash.once": "^4.0.0",
- "ms": "^2.1.1",
- "semver": "^5.6.0"
+ "@samverschueren/stream-to-observable": "^0.3.0",
+ "chalk": "^4.0.0",
+ "cli-cursor": "^3.1.0",
+ "cli-truncate": "^2.1.0",
+ "elegant-spinner": "^2.0.0",
+ "enquirer": "^2.3.5",
+ "figures": "^3.2.0",
+ "indent-string": "^4.0.0",
+ "log-update": "^4.0.0",
+ "p-map": "^4.0.0",
+ "pad": "^3.2.0",
+ "rxjs": "^6.5.5",
+ "through": "^2.3.8",
+ "uuid": "^7.0.2"
},
"dependencies": {
- "ms": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
- "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
+ "ansi-styles": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
+ "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
+ "dev": true,
+ "requires": {
+ "@types/color-name": "^1.1.1",
+ "color-convert": "^2.0.1"
+ }
+ },
+ "chalk": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.0.0.tgz",
+ "integrity": "sha512-N9oWFcegS0sFr9oh1oz2d7Npos6vNoWW9HvtCg5N1KRFpUhaAhvTv5Y58g880fZaEYSNm3qDz8SU1UrGvp+n7A==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^4.1.0",
+ "supports-color": "^7.1.0"
+ }
+ },
+ "cli-cursor": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz",
+ "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==",
+ "dev": true,
+ "requires": {
+ "restore-cursor": "^3.1.0"
+ }
+ },
+ "color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "requires": {
+ "color-name": "~1.1.4"
+ }
+ },
+ "color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true
+ },
+ "figures": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz",
+ "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==",
+ "dev": true,
+ "requires": {
+ "escape-string-regexp": "^1.0.5"
+ }
+ },
+ "has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
+ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true
+ },
+ "mimic-fn": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
+ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
+ "dev": true
+ },
+ "onetime": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.0.tgz",
+ "integrity": "sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q==",
+ "dev": true,
+ "requires": {
+ "mimic-fn": "^2.1.0"
+ }
+ },
+ "p-map": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz",
+ "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==",
+ "dev": true,
+ "requires": {
+ "aggregate-error": "^3.0.0"
+ }
+ },
+ "restore-cursor": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz",
+ "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==",
+ "dev": true,
+ "requires": {
+ "onetime": "^5.1.0",
+ "signal-exit": "^3.0.2"
+ }
+ },
+ "supports-color": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz",
+ "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==",
+ "dev": true,
+ "requires": {
+ "has-flag": "^4.0.0"
+ }
+ },
+ "uuid": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-7.0.3.tgz",
+ "integrity": "sha512-DPSke0pXhTZgoF/d+WSt2QaKMCFSfx7QegxEWT+JOuHF5aWrKEn0G+ztjuJg/gG8/ItK+rbPCD/yNv8yyih6Cg==",
+ "dev": true
}
}
},
- "jwa": {
- "version": "1.4.1",
- "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz",
- "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==",
- "requires": {
- "buffer-equal-constant-time": "1.0.1",
- "ecdsa-sig-formatter": "1.0.11",
- "safe-buffer": "^5.0.1"
- }
- },
- "jws": {
- "version": "3.2.2",
- "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz",
- "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==",
- "requires": {
- "jwa": "^1.4.1",
- "safe-buffer": "^5.0.1"
- }
- },
- "keyv": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz",
- "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==",
- "requires": {
- "json-buffer": "3.0.0"
- }
- },
- "latest-version": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz",
- "integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==",
- "requires": {
- "package-json": "^6.3.0"
- }
- },
- "levn": {
- "version": "0.3.0",
- "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz",
- "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=",
- "requires": {
- "prelude-ls": "~1.1.2",
- "type-check": "~0.3.2"
- }
- },
- "lines-and-columns": {
- "version": "1.1.6",
- "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz",
- "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=",
- "dev": true
- },
- "lint-staged": {
- "version": "10.2.6",
- "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-10.2.6.tgz",
- "integrity": "sha512-2oEBWyPZHkdyjKcIv2U6ay80Q52ZMlZZrUnfsV0WTVcgzPlt3o2t5UFy2v8ETUTsIDZ0xSJVnffWCgD3LF6xTQ==",
- "dev": true,
+ "load-json-file": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz",
+ "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=",
"requires": {
"chalk": "^4.0.0",
"cli-truncate": "2.1.0",
@@ -5441,6 +6129,12 @@
"integrity": "sha512-pVOEP16TrAO2/fjej1IdOyupJY8KDUM1CvsaScRbw6oddvpQoOfGk4ywha0HKKVAD6RkW4x6Q+tNBwhf3Bgpuw==",
"dev": true
},
+ "opencollective-postinstall": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/opencollective-postinstall/-/opencollective-postinstall-2.0.2.tgz",
+ "integrity": "sha512-pVOEP16TrAO2/fjej1IdOyupJY8KDUM1CvsaScRbw6oddvpQoOfGk4ywha0HKKVAD6RkW4x6Q+tNBwhf3Bgpuw==",
+ "dev": true
+ },
"optionator": {
"version": "0.8.3",
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz",
@@ -5724,6 +6418,11 @@
"semver-compare": "^1.0.0"
}
},
+ "pluralize": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-7.0.0.tgz",
+ "integrity": "sha512-ARhBOdzS3e41FbkW/XWrTEtukqqLoK5+Z/4UeDaLuSW+39JPeFgs4gCGqsrJHVZX0fUrx//4OF0K1CUGwlIFow=="
+ },
"prelude-ls": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz",
@@ -6539,6 +7238,15 @@
"tslib": "^1.9.0"
}
},
+ "rxjs": {
+ "version": "6.5.5",
+ "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.5.5.tgz",
+ "integrity": "sha512-WfQI+1gohdf0Dai/Bbmk5L5ItH5tYqm3ki2c5GdWhKjalzjg93N3avFjVStyZZz+A2Em+ZxKH5bNghw9UeylGQ==",
+ "dev": true,
+ "requires": {
+ "tslib": "^1.9.0"
+ }
+ },
"safe-buffer": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz",
@@ -6702,6 +7410,14 @@
"integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",
"dev": true
},
+ "slice-ansi": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-1.0.0.tgz",
+ "integrity": "sha512-POqxBK6Lb3q6s047D/XsDVNPnF9Dl8JSaqe9h9lURl0OdNqy/ujDrOiIHtsqXMGbWWTIomRzAMaTyawAU//Reg==",
+ "requires": {
+ "is-fullwidth-code-point": "^2.0.0"
+ }
+ },
"smee-client": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/smee-client/-/smee-client-1.1.0.tgz",
@@ -7223,6 +7939,15 @@
"integrity": "sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg==",
"dev": true
},
+ "string-width": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz",
+ "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==",
+ "requires": {
+ "is-fullwidth-code-point": "^2.0.0",
+ "strip-ansi": "^4.0.0"
+ }
+ },
"string.prototype.trimleft": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/string.prototype.trimleft/-/string.prototype.trimleft-2.1.1.tgz",
@@ -7277,6 +8002,24 @@
}
}
},
+ "strip-ansi": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz",
+ "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=",
+ "requires": {
+ "get-own-enumerable-property-symbols": "^3.0.0",
+ "is-obj": "^1.0.1",
+ "is-regexp": "^1.0.0"
+ },
+ "dependencies": {
+ "is-obj": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz",
+ "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=",
+ "dev": true
+ }
+ }
+ },
"strip-bom": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",
diff --git a/spec/checkIssueAssignedSpec.js b/spec/checkIssueAssignedSpec.js
new file mode 100644
index 00000000..b8c183fc
--- /dev/null
+++ b/spec/checkIssueAssignedSpec.js
@@ -0,0 +1,208 @@
+// Copyright 2020 The Oppia Authors. All Rights Reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS-IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/**
+ * @fileoverview Spec for issue assigned handler.
+ */
+
+const github = require('@actions/github');
+const core = require('@actions/core');
+const payload = require('../fixtures/issues.assigned.json');
+const { google } = require('googleapis');
+const dispatcher = require('../actions/src/dispatcher');
+const checkIssueAssigneeModule = require('../actions/src/issues/checkIssueAssignee');
+const checkIssueLabelModule = require('../actions/src/issues/checkIssueLabels');
+
+describe('Check Issue Assignee Module', () => {
+ /**
+ * @type {import('@actions/github').GitHub} octokit
+ */
+ let octokit;
+
+ beforeEach(async () => {
+ github.context.eventName = 'issues';
+ github.context.payload = payload;
+ github.context.issue = payload.issue;
+ github.context.repo = {
+ owner: payload.repository.owner.login,
+ repo: payload.repository.name,
+ };
+
+ octokit = {
+ issues: {
+ createComment: jasmine.createSpy('createComment').and.resolveTo({}),
+ removeAssignees: jasmine.createSpy('removeAssignees').and.resolveTo({}),
+ },
+ };
+
+ spyOn(core, 'getInput').and.returnValue('sample-token');
+
+ // Mock GitHub API.
+ Object.setPrototypeOf(github.GitHub, function () {
+ return octokit;
+ });
+ spyOn(checkIssueAssigneeModule, 'checkAssignees').and.callThrough();
+ spyOn(checkIssueLabelModule, 'checkLabels').and.callFake(() => {});
+ });
+
+ describe('called for only issue event and assigned action', () => {
+ it('should not be called for non issue event', async () => {
+ await dispatcher.dispatch('pull_request', 'assigned');
+ expect(checkIssueAssigneeModule.checkAssignees).not.toHaveBeenCalled();
+ });
+
+ it('should not be called for non assigned action', async () => {
+ await dispatcher.dispatch('issues', 'opened');
+ expect(checkIssueAssigneeModule.checkAssignees).not.toHaveBeenCalled();
+
+ await dispatcher.dispatch('issues', 'labeled');
+ expect(checkIssueAssigneeModule.checkAssignees).not.toHaveBeenCalled();
+ });
+ });
+
+ describe('check when user has not signed cla', () => {
+ beforeEach(async () => {
+ spyOn(google, 'sheets').and.returnValue({
+ spreadsheets: {
+ values: {
+ get: jasmine.createSpy('get').and.resolveTo({
+ data: { values: [['other_user']] },
+ }),
+ },
+ },
+ });
+
+ await dispatcher.dispatch('issues', 'assigned');
+ });
+
+ it('should call checkAssignees', () => {
+ expect(checkIssueAssigneeModule.checkAssignees).toHaveBeenCalled();
+ });
+
+ it('should check the spreadsheet', () => {
+ expect(google.sheets).toHaveBeenCalled();
+ });
+
+ it('should comment on issue', () => {
+ const linkToCla = 'here'.link(
+ 'https://github.com/oppia/oppia/wiki/Contributing-code-to-Oppia#setting-things-up');
+ expect(octokit.issues.createComment).toHaveBeenCalled();
+ expect(octokit.issues.createComment).toHaveBeenCalledWith({
+ issue_number: payload.issue.number,
+ owner: payload.repository.owner.login,
+ repo: payload.repository.name,
+ body: 'Hi @' + payload.assignee.login + ', you need to sign the ' +
+ 'CLA before you can get assigned to issues. Follow the instructions ' +
+ linkToCla + ' to get started. Thanks!',
+ });
+ });
+
+ it('should unassign user', () => {
+ expect(octokit.issues.removeAssignees).toHaveBeenCalled();
+ expect(octokit.issues.removeAssignees).toHaveBeenCalledWith({
+ issue_number: payload.issue.number,
+ owner: payload.repository.owner.login,
+ repo: payload.repository.name,
+ assignees: [payload.assignee.login],
+ });
+ });
+ });
+
+ describe('check when user has signed cla', () => {
+ beforeEach(async () => {
+ spyOn(google, 'sheets').and.returnValue({
+ spreadsheets: {
+ values: {
+ get: jasmine.createSpy('get').and.resolveTo({
+ data: { values: [['test_user']] },
+ }),
+ },
+ },
+ });
+
+ await dispatcher.dispatch('issues', 'assigned');
+ });
+
+ it('should call checkAssignees', () => {
+ expect(checkIssueAssigneeModule.checkAssignees).toHaveBeenCalled();
+ });
+
+ it('should check the spreadsheet', () => {
+ expect(google.sheets).toHaveBeenCalled();
+ });
+
+ it('should not comment on issue', () => {
+ expect(octokit.issues.createComment).not.toHaveBeenCalled();
+ });
+
+ it('should not unassign user', () => {
+ expect(octokit.issues.removeAssignees).not.toHaveBeenCalled();
+ });
+ });
+
+
+ describe('when sheets api throws error', () => {
+ beforeEach(async () => {
+ spyOn(google, 'sheets').and.returnValue({
+ spreadsheets: {
+ values: {
+ get: jasmine.createSpy('get').and.throwError('Unable to get sheet.'),
+ },
+ },
+ });
+ spyOn(core, 'setFailed').and.callThrough();
+
+ await dispatcher.dispatch('issues', 'assigned');
+ });
+
+ it('should call checkAssignees', () => {
+ expect(checkIssueAssigneeModule.checkAssignees).toHaveBeenCalled();
+ });
+
+ it('should check the spreadsheet', () => {
+ expect(google.sheets).toHaveBeenCalled();
+ });
+
+ it('should fail the check', () =>{
+ expect(core.setFailed).toHaveBeenCalled();
+ });
+
+ it('should not comment on issue', () => {
+ expect(octokit.issues.createComment).not.toHaveBeenCalled();
+ });
+
+ it('should not unassign user', () => {
+ expect(octokit.issues.removeAssignees).not.toHaveBeenCalled();
+ });
+ });
+
+ describe('check non whitelisted repo', () => {
+ beforeEach(async () => {
+ payload.repository.name = 'non-whitelisted-repo'
+ await dispatcher.dispatch('issues', 'assigned');
+ });
+
+ it('should not be called for the payload', () => {
+ expect(checkIssueAssigneeModule.checkAssignees).not.toHaveBeenCalled();
+ });
+
+ it('should not comment on issue', () => {
+ expect(octokit.issues.createComment).not.toHaveBeenCalled();
+ });
+
+ it('should not unassign user', () => {
+ expect(octokit.issues.removeAssignees).not.toHaveBeenCalled();
+ });
+ })
+});