-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #177 from vmware/IAC-789-vro-aria-automation-plugi…
…n-inventory-types IAC-789 new Aria Auto vRO Plugin inventory Types
- Loading branch information
Showing
7 changed files
with
141 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.o11n/ | ||
.vscode/ | ||
target | ||
pom.xml | ||
**/.DS_Store | ||
package-lock.json | ||
**/*.tgz | ||
.settings/ | ||
.classpath | ||
.project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
/** | ||
* Specifies the object Type VRA:HOST. | ||
*/ | ||
declare class VraHost { | ||
readonly displayName: string; | ||
readonly name: string; | ||
readonly cloudHost: string; | ||
readonly id: string; | ||
readonly vraHost: string; | ||
readonly sessionMode: string; | ||
readonly connectionType: string; | ||
readonly user: string; | ||
/** | ||
* Validates the Host Connection. | ||
*/ | ||
validate(): boolean; | ||
|
||
/** | ||
* Creates a generic REST client for Automation Host | ||
*/ | ||
createRestClient(): VraGenericRestClient; | ||
|
||
} | ||
|
||
declare class VraGenericRestClient { | ||
readonly host: VraHost; | ||
|
||
/** | ||
* Method to execute rest operation by setting Request object. Request object can hold information (http method, resource url, request payload) | ||
* @param restRequest | ||
*/ | ||
execute(restRequest: VraRestRequest): VraRestResponse; | ||
|
||
/** | ||
* Method to create HTTP rest Request. It holds parameter (HTTP Method (GET/PUT/POST/DELETE/PATCH), Resource Path URI, Request Payload (Stringified JSON)). | ||
* @param method | ||
* @param path | ||
* @param requestPayload | ||
*/ | ||
createRequest(method: string, path: string, requestPayload: string): VraRestRequest; | ||
|
||
} | ||
|
||
declare class VraRestRequest { | ||
readonly path: string; | ||
readonly method: string; | ||
readonly payload: string; | ||
|
||
/** | ||
* Sets Headers to the Http Request Object. | ||
* @param key | ||
* @param value | ||
*/ | ||
setHeader(key: string,value:string): void; | ||
|
||
/** | ||
* Gets Http Header value for the key from the Http Request. | ||
* @param header | ||
*/ | ||
getHeader(header: string): string; | ||
} | ||
|
||
declare class VraRestResponse { | ||
readonly contentAsString: string; | ||
readonly allHeaders: { [key: string]: string }; | ||
readonly contentLength: number; | ||
readonly statusMessage: string; | ||
readonly statusCode: number; | ||
|
||
/** | ||
* Retrieves the server's response header values per header with specific name. | ||
* @param headerName | ||
*/ | ||
getHeaderValues(headerName: string): string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "@types/o11n-plugin-aria", | ||
"version": "2.35.2-SNAPSHOT", | ||
"author": "VMware PSCoE", | ||
"license": "ISC", | ||
"private": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>com.vmware.pscoe.ts.types</groupId> | ||
<artifactId>base-type</artifactId> | ||
<version>${revision}</version> | ||
<relativePath>../pom.xml</relativePath> | ||
</parent> | ||
|
||
<groupId>com.vmware.pscoe.ts.types</groupId> | ||
<artifactId>o11n-plugin-aria</artifactId> | ||
|
||
<properties> | ||
<main.basedir>${project.parent.parent.basedir}</main.basedir> | ||
</properties> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>exec-maven-plugin</artifactId> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>build-helper-maven-plugin</artifactId> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters