Skip to content

Commit

Permalink
serviceconnector: Add Service Connector 🔗 (#1476)
Browse files Browse the repository at this point in the history
* Add create, delte, and validate service connector

* Requested changes

* More changes

* Update utils and other requested changes

* Add serviceconnector to filters

* Add license file and package script

* Remove pretest

* Add test folder

* Remove fs-extra

* Final touches

* Rename folders

* Rename createServiceConnectorClient
  • Loading branch information
motm32 authored Jun 23, 2023
1 parent 4fc7175 commit 10ece51
Show file tree
Hide file tree
Showing 35 changed files with 4,814 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
azure: "azure/**"
dev: "dev/**"
eslint-config-azuretools: "eslint-config-azuretools/**"
serviceconnector: "serviceconnector/**"
utils: "utils/**"
outputs:
# Expose matched filters as job 'packages' output variable
Expand Down
3 changes: 3 additions & 0 deletions serviceconnector/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
gulpfile.ts
.eslintrc.js
**/*.d.ts
3 changes: 3 additions & 0 deletions serviceconnector/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
"extends": "@microsoft/eslint-config-azuretools"
};
5 changes: 5 additions & 0 deletions serviceconnector/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"dbaeumer.vscode-eslint"
]
}
5 changes: 5 additions & 0 deletions serviceconnector/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"version": "0.2.0",
"configurations": [
]
}
15 changes: 15 additions & 0 deletions serviceconnector/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"editor.formatOnSave": true,
"editor.insertSpaces": true,
"editor.tabSize": 4,
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
"search.exclude": {
"out": true,
"**/node_modules": true,
".vscode-test": true
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
}
23 changes: 23 additions & 0 deletions serviceconnector/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "compile",
"group": {
"kind": "build",
"isDefault": true
},
"isBackground": true,
"presentation": {
"reveal": "never"
},
"problemMatcher": "$tsc-watch"
},
{
"type": "npm",
"script": "lint",
"problemMatcher": "$eslint-stylish"
}
]
}
21 changes: 21 additions & 0 deletions serviceconnector/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) Microsoft Corporation. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", 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
16 changes: 16 additions & 0 deletions serviceconnector/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/

export type TargetServiceType = {
name: string;
id: string;
type: TargetServiceTypeName;
}

export enum TargetServiceTypeName {
Storage = 'storage',
//add database types
}

Loading

0 comments on commit 10ece51

Please sign in to comment.