Skip to content

Commit

Permalink
fix(baremetalsolution): update the API
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and sofisl committed May 21, 2021
1 parent e5c1ec5 commit 090133b
Show file tree
Hide file tree
Showing 7 changed files with 694 additions and 0 deletions.
168 changes: 168 additions & 0 deletions discovery/baremetalsolution-v1.json
@@ -0,0 +1,168 @@
{
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "See, edit, configure, and delete your Google Cloud Platform data"
}
}
}
},
"basePath": "",
"baseUrl": "https://baremetalsolution.googleapis.com/",
"batchPath": "batch",
"description": "Bare Metal Solution provides hardware to run specialized workloads with low latency on Google Cloud.",
"discoveryVersion": "v1",
"documentationLink": "https://cloud.google.com/bare-metal",
"fullyEncodeReservedExpansion": true,
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"id": "baremetalsolution:v1",
"kind": "discovery#restDescription",
"mtlsRootUrl": "https://baremetalsolution.mtls.googleapis.com/",
"name": "baremetalsolution",
"ownerDomain": "google.com",
"ownerName": "Google",
"parameters": {
"$.xgafv": {
"description": "V1 error format.",
"enum": [
"1",
"2"
],
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"type": "string"
},
"access_token": {
"description": "OAuth access token.",
"location": "query",
"type": "string"
},
"alt": {
"default": "json",
"description": "Data format for response.",
"enum": [
"json",
"media",
"proto"
],
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"type": "string"
},
"callback": {
"description": "JSONP",
"location": "query",
"type": "string"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"location": "query",
"type": "string"
},
"key": {
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"location": "query",
"type": "string"
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"location": "query",
"type": "string"
},
"prettyPrint": {
"default": "true",
"description": "Returns response with indentations and line breaks.",
"location": "query",
"type": "boolean"
},
"quotaUser": {
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"location": "query",
"type": "string"
},
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"location": "query",
"type": "string"
},
"upload_protocol": {
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"location": "query",
"type": "string"
}
},
"protocol": "rest",
"resources": {
"projects": {
"resources": {
"locations": {
"resources": {
"instances": {
"methods": {
"resetInstance": {
"description": "Perform an ungraceful, hard reset on a machine (equivalent to shutting the power off, and then turning it back on).",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:resetInstance",
"httpMethod": "POST",
"id": "baremetalsolution.projects.locations.instances.resetInstance",
"parameterOrder": [
"instance"
],
"parameters": {
"instance": {
"description": "Required. Name of the instance to reset.",
"location": "path",
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v1/{+instance}:resetInstance",
"request": {
"$ref": "ResetInstanceRequest"
},
"response": {
"$ref": "ResetInstanceResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform"
]
}
}
}
}
}
}
}
},
"revision": "20210519",
"rootUrl": "https://baremetalsolution.googleapis.com/",
"schemas": {
"ResetInstanceRequest": {
"description": "Request for ResetInstance.",
"id": "ResetInstanceRequest",
"properties": {},
"type": "object"
},
"ResetInstanceResponse": {
"description": "Response for ResetInstance.",
"id": "ResetInstanceResponse",
"properties": {},
"type": "object"
}
},
"servicePath": "",
"title": "Bare Metal Solution API",
"version": "v1",
"version_module": true
}
28 changes: 28 additions & 0 deletions src/apis/baremetalsolution/README.md
@@ -0,0 +1,28 @@
<img src="https://avatars0.githubusercontent.com/u/1342004?v=3&s=96" alt="Google Inc. logo" title="Google" align="right" height="96" width="96"/>

# baremetalsolution

> Bare Metal Solution provides hardware to run specialized workloads with low latency on Google Cloud.
## Installation

```sh
$ npm install @googleapis/baremetalsolution
```

## Usage
All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client).
Information on classes can be found in [Googleapis Documentation](https://googleapis.dev/nodejs/googleapis/latest/baremetalsolution/classes/Baremetalsolution.html).

## License
This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE).

## Contributing
We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md).

## Questions/problems?
* Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client).
* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues).


*Crafted with ❤️ by the Google Node.js team*
48 changes: 48 additions & 0 deletions src/apis/baremetalsolution/index.ts
@@ -0,0 +1,48 @@
// Copyright 2020 Google LLC
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT 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 */

import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common';
import {baremetalsolution_v1} from './v1';

export const VERSIONS = {
v1: baremetalsolution_v1.Baremetalsolution,
};

export function baremetalsolution(
version: 'v1'
): baremetalsolution_v1.Baremetalsolution;
export function baremetalsolution(
options: baremetalsolution_v1.Options
): baremetalsolution_v1.Baremetalsolution;
export function baremetalsolution<T = baremetalsolution_v1.Baremetalsolution>(
this: GoogleConfigurable,
versionOrOptions: 'v1' | baremetalsolution_v1.Options
) {
return getAPI<T>('baremetalsolution', versionOrOptions, VERSIONS, this);
}

const auth = new AuthPlus();
export {auth};
export {baremetalsolution_v1};
export {
AuthPlus,
GlobalOptions,
APIRequestContext,
GoogleConfigurable,
StreamMethodOptions,
GaxiosPromise,
MethodOptions,
BodyResponseCallback,
} from 'googleapis-common';
43 changes: 43 additions & 0 deletions src/apis/baremetalsolution/package.json
@@ -0,0 +1,43 @@
{
"name": "@googleapis/baremetalsolution",
"version": "0.1.0",
"description": "baremetalsolution",
"main": "build/index.js",
"types": "build/index.d.ts",
"keywords": [
"google"
],
"author": "Google LLC",
"license": "Apache-2.0",
"homepage": "https://github.com/googleapis/google-api-nodejs-client",
"bugs": {
"url": "https://github.com/googleapis/google-api-nodejs-client/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/googleapis/google-api-nodejs-client.git"
},
"engines": {
"node": ">=10.0.0"
},
"scripts": {
"fix": "gts fix",
"lint": "gts check",
"compile": "tsc -p .",
"prepare": "npm run compile",
"webpack": "webpack"
},
"dependencies": {
"googleapis-common": "^5.0.1"
},
"devDependencies": {
"@microsoft/api-documenter": "^7.8.10",
"@microsoft/api-extractor": "^7.8.10",
"gts": "^2.0.0",
"null-loader": "^4.0.0",
"ts-loader": "^8.0.0",
"typescript": "~3.7.0",
"webpack": "^5.0.0",
"webpack-cli": "^4.0.0"
}
}
10 changes: 10 additions & 0 deletions src/apis/baremetalsolution/tsconfig.json
@@ -0,0 +1,10 @@
{
"extends": "./node_modules/gts/tsconfig-google.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "build"
},
"include": [
"*.ts",
]
}

0 comments on commit 090133b

Please sign in to comment.