/
home
/
infinitibizsol
/
.trash
/
node_modules.3
/
googleapis
/
build
/
src
/
apis
/
dataportability
/
File Upload :
llllll
Current File: /home/infinitibizsol/.trash/node_modules.3/googleapis/build/src/apis/dataportability/v1beta.js
"use strict"; // Copyright 2020 Google LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); exports.dataportability_v1beta = void 0; /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable @typescript-eslint/no-empty-interface */ /* eslint-disable @typescript-eslint/no-namespace */ /* eslint-disable no-irregular-whitespace */ const googleapis_common_1 = require("googleapis-common"); var dataportability_v1beta; (function (dataportability_v1beta) { /** * Data Portability API * * The Data Portability API lets you build applications that request authorization from a user to move a copy of data from Google services into your application. This enables data portability and facilitates switching services. * * @example * ```js * const {google} = require('googleapis'); * const dataportability = google.dataportability('v1beta'); * ``` */ class Dataportability { constructor(options, google) { this.context = { _options: options || {}, google, }; this.archiveJobs = new Resource$Archivejobs(this.context); this.authorization = new Resource$Authorization(this.context); this.portabilityArchive = new Resource$Portabilityarchive(this.context); } } dataportability_v1beta.Dataportability = Dataportability; class Resource$Archivejobs { constructor(context) { this.context = context; } getPortabilityArchiveState(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://dataportability.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) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } retry(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://dataportability.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta/{+name}:retry').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, requiredParams: ['name'], pathParams: ['name'], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } } dataportability_v1beta.Resource$Archivejobs = Resource$Archivejobs; class Resource$Authorization { constructor(context) { this.context = context; } reset(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://dataportability.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta/authorization:reset').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, requiredParams: [], pathParams: [], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } } dataportability_v1beta.Resource$Authorization = Resource$Authorization; class Resource$Portabilityarchive { constructor(context) { this.context = context; } initiate(paramsOrCallback, optionsOrCallback, callback) { let params = (paramsOrCallback || {}); let options = (optionsOrCallback || {}); if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; params = {}; options = {}; } if (typeof optionsOrCallback === 'function') { callback = optionsOrCallback; options = {}; } const rootUrl = options.rootUrl || 'https://dataportability.googleapis.com/'; const parameters = { options: Object.assign({ url: (rootUrl + '/v1beta/portabilityArchive:initiate').replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options), params, requiredParams: [], pathParams: [], context: this.context, }; if (callback) { (0, googleapis_common_1.createAPIRequest)(parameters, callback); } else { return (0, googleapis_common_1.createAPIRequest)(parameters); } } } dataportability_v1beta.Resource$Portabilityarchive = Resource$Portabilityarchive; })(dataportability_v1beta || (exports.dataportability_v1beta = dataportability_v1beta = {}));
Copyright ©2k19 -
Hexid
|
Tex7ure