Commit graph

189 commits

Author SHA1 Message Date
Claussen
6b8caf0bd7 1.5.6 - production function exports 2022-12-06 13:36:44 -05:00
Claussen
e7a67328bf 1.5.5 2022-12-06 13:35:56 -05:00
Claussen
ff0c0127cd Add explicit FunctionsToExport 2022-12-06 13:35:47 -05:00
Claussen
c3621f237e Remove unnecessary file headers 2022-12-06 13:34:52 -05:00
Ben Claussen
cad361c1b4 Update deploy.ps1 with new logic 2022-12-01 09:46:13 -05:00
Ben Claussen
cd0d6383e6 Update parent parameter type to string 2022-11-29 11:28:11 -05:00
Ben Claussen
7aedcf8338 Add Site parameter and validation logic 2022-11-28 15:45:19 -05:00
Alexis La Goutte
cb4e2f2f57
Merge pull request #35 from alagoutte/fix-pssa
Clear-NetboxCredential: Fix PSSA (trailing whitespace)
2022-07-06 21:48:15 +02:00
Alexis La Goutte
e29299022e Clear-NetboxCredential: Fix PSSA (trailing whitespace) 2022-06-29 07:59:13 +02:00
Ben Claussen
9dd6bc2b0e Remove old ThrowNetboxRESTError function 2021-09-10 12:44:48 -04:00
Ben Claussen
3e03e1e3ad Add Clear-NetboxCredential
- Grants ability to clear the stored credentials in `$Netboxconfig` variable
2021-09-10 12:43:34 -04:00
Alexis La Goutte
7edbae953f
Tests: Fix PSSA (#27)
* Tests: fix indent/align (with Visual Formatter Code)

* Tests: Suppress warning about use ConvertToSecureString...

* Setup(Tests): fix PSSA about unused variable
2021-09-10 11:38:00 -04:00
Alexis La Goutte
a608d6ebd7
Fix PSSA deploy(.ps1) warning (#26)
* Deploy: fix indent (remove trailing whitespace)

* Deploy(.ps1): Remove PSSA warning about don't use Write-host

* Deploy(.ps1): Remove PSSA warning unused variable

false positive (it is used for ParameterSet...)
2021-09-10 11:35:49 -04:00
Alexis La Goutte
e8a5fdf15d
Enhance (DCIM) Site (#25)
* Site(DCIM): Fix Get without parameter

* Site(DCIM): Fix indent (use 4 spaces for header)

* Site(DCIM): Add New-NetboxDCIMSite for Add DCIM Site

* Site(DCIM): Add Remove-NetboxDCIMSite for Remove DCIM Site
2021-09-10 11:34:37 -04:00
Alexis La Goutte
e162c05900
Fix Publish on PSGallery (with PS Core) (#24)
* Connect: Add System.Web to Type (Assembly) for PS 5.0

* NetboxPS(.psd1): Remove Required Assemblies (System.web) requirement
2021-09-10 11:31:15 -04:00
Ben Claussen
26c7ccfdd0
v1.5.0 (#22)
* Connect(Setup): Fix indent (using Visual code Formatter)

* Setup(Functions): Fix indent (using Visual Code Formatter)

* Support(Setup): Fix indent (using Visual Code Formatter)

* InvokeNetboxRequest(Helpers): Fix indent (using Visual Code Formatter)

* Add Set-netboxCipherSSL for enable TLS1.1 and TLS1.2 (for PS 5.0)

From PowerAruba/FortiPower Module :)

* Add Set-NetboxUnstrustedSSL for disable SSL chain test (for PS 5.0

From PowerAruba/FortiPwoer Module :)

* Add Get/Set netboxInvokeParms for Get and Set Invoke Params (array)

Like -SkipCertificate, Timeout...

* InvokeNetboxRequest: Add to Splat NetboxInvokeParams

* Connect: Add SkipCertificateCheck parameter (for PS5 and Core)

Also enable TLS 1.1 and 1.2 for PS5

* PSSA: Add Github Actions for launch PSSA (PowerShell Script Analyzer) when launch PR (#11)

Add also vscode/PSScriptAnalyzerSettings.psd1 for Settings for PSSA (can be reuse also for vscode...)

* Update psproj

* Correct typo

* Correct brace formatting

* Add Get/Set timeout functions

* Add Get/Set timeout functions

* Add TimeoutSeconds parameter and logic to Connect-NetboxAPI
- Updated `InvokeNetboxRequest` to use `NetboxConfig.Timeout`
- Updated `Get-NetboxAPIDefinition` to use `NetboxConfig.Timeout`

* Trim whitespaces

* Add Get-NetboxVersion function

* Remove API Definition caching and replace with Netbox version check

* Increment version to 1.4

* Fix Typo and Enhance AvailableIP Example (#18)

* AvailableIP(IPAM/Address): Fix typo

* AvailableIP(IAPM/Address): Enhance Example

* NetboxPS(.psm1): Fix typo (paramters => parameters

* Update deployment files

* Add Assigned Object (Type and ID) to New IPAM Address (#19)

* IPAMAddress(New): Remove tab (use 4 spaces)

* IPAMAddress(New): Remove not longer needed code about value validation

* IPAMAddress(New): Add Assigned Object Type and ID

Fix #17

* IPAMAddress(New): add Parameter example

* IPAMAddress(New): Add Validate for Assigned Object Type

Can be only dcim.interface or virtualization.vminterface

* IPAMAddress(New): Fix Example (it is New and not Create Verb !)

* IPAMAddress(New): Remove -Force parameter, use -Confirm if you want a confirmation

it is the standard with ShouldProcess

* Fix PSSA Warning (#20)

* Fix trailing white space

using Invoke-ScriptAnalyzer -Fix -Path . -Recurse

* add settings.json for configure Visual Code (Formatter)

* PSSA: Fix Command accepts pipeline input but has not defined a process block

* PSSA: Fix PSUseDeclaredVarsMoreThanAssignments

The variable 'I_B' is assigned but never used
The variable 'I_A' is assigned but never used

* PSSA: Fix PSUseShouldProcessForStateChangingFunctions

Function New-/Set-... has verb that could change system state. Therefore, the function has to support 'ShouldProcess'

* Add release.(yml) Github Actions (#21)

It will push on PSGallery module when release a new version !

* Update deploy.ps1 docs

* Update readme

* Remove unused files

* Increment version to 1.5.0

Co-authored-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Co-authored-by: Ben Claussen <claussen@neonet.org>
2021-07-23 16:24:34 -04:00
Ben Claussen
c8e0a96690
Merge branch 'master' into dev 2021-07-23 16:22:19 -04:00
Ben Claussen
30ae377493 Increment version to 1.5.0 2021-07-23 16:19:03 -04:00
Ben Claussen
c11680a20e Remove unused files 2021-07-23 16:16:13 -04:00
Ben Claussen
f9fc02756c Update readme 2021-07-23 16:15:46 -04:00
Ben Claussen
48452ce686 Update deploy.ps1 docs 2021-07-23 16:15:34 -04:00
Alexis La Goutte
42b00279cb
Add release.(yml) Github Actions (#21)
It will push on PSGallery module when release a new version !
2021-07-23 16:12:46 -04:00
Alexis La Goutte
8167b0dbf0
Fix PSSA Warning (#20)
* Fix trailing white space

using Invoke-ScriptAnalyzer -Fix -Path . -Recurse

* add settings.json for configure Visual Code (Formatter)

* PSSA: Fix Command accepts pipeline input but has not defined a process block

* PSSA: Fix PSUseDeclaredVarsMoreThanAssignments

The variable 'I_B' is assigned but never used
The variable 'I_A' is assigned but never used

* PSSA: Fix PSUseShouldProcessForStateChangingFunctions

Function New-/Set-... has verb that could change system state. Therefore, the function has to support 'ShouldProcess'
2021-07-23 16:06:42 -04:00
Alexis La Goutte
ddf1d22e18
Add Assigned Object (Type and ID) to New IPAM Address (#19)
* IPAMAddress(New): Remove tab (use 4 spaces)

* IPAMAddress(New): Remove not longer needed code about value validation

* IPAMAddress(New): Add Assigned Object Type and ID

Fix #17

* IPAMAddress(New): add Parameter example

* IPAMAddress(New): Add Validate for Assigned Object Type

Can be only dcim.interface or virtualization.vminterface

* IPAMAddress(New): Fix Example (it is New and not Create Verb !)

* IPAMAddress(New): Remove -Force parameter, use -Confirm if you want a confirmation

it is the standard with ShouldProcess
2021-07-23 16:03:07 -04:00
Ben Claussen
11ae767a6c Update deployment files 2021-07-23 10:26:14 -04:00
Alexis La Goutte
01335bd225
Fix Typo and Enhance AvailableIP Example (#18)
* AvailableIP(IPAM/Address): Fix typo

* AvailableIP(IAPM/Address): Enhance Example

* NetboxPS(.psm1): Fix typo (paramters => parameters
2021-07-23 10:24:27 -04:00
Ben Claussen
739f5e98e2
Version 1.4 (#14)
* Connect(Setup): Fix indent (using Visual code Formatter)

* Setup(Functions): Fix indent (using Visual Code Formatter)

* Support(Setup): Fix indent (using Visual Code Formatter)

* InvokeNetboxRequest(Helpers): Fix indent (using Visual Code Formatter)

* Add Set-netboxCipherSSL for enable TLS1.1 and TLS1.2 (for PS 5.0)

From PowerAruba/FortiPower Module :)

* Add Set-NetboxUnstrustedSSL for disable SSL chain test (for PS 5.0

From PowerAruba/FortiPwoer Module :)

* Add Get/Set netboxInvokeParms for Get and Set Invoke Params (array)

Like -SkipCertificate, Timeout...

* InvokeNetboxRequest: Add to Splat NetboxInvokeParams

* Connect: Add SkipCertificateCheck parameter (for PS5 and Core)

Also enable TLS 1.1 and 1.2 for PS5

* PSSA: Add Github Actions for launch PSSA (PowerShell Script Analyzer) when launch PR (#11)

Add also vscode/PSScriptAnalyzerSettings.psd1 for Settings for PSSA (can be reuse also for vscode...)

* Update psproj

* Correct typo

* Correct brace formatting

* Add Get/Set timeout functions

* Add Get/Set timeout functions

* Add TimeoutSeconds parameter and logic to Connect-NetboxAPI
- Updated `InvokeNetboxRequest` to use `NetboxConfig.Timeout`
- Updated `Get-NetboxAPIDefinition` to use `NetboxConfig.Timeout`

* Trim whitespaces

* Add Get-NetboxVersion function

* Remove API Definition caching and replace with Netbox version check

* Increment version to 1.4

Co-authored-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Co-authored-by: Ben Claussen <claussen@neonet.org>
2021-07-22 12:00:12 -04:00
Ben Claussen
2b7c1b4be3 Increment version to 1.4 2021-07-22 11:53:58 -04:00
Ben Claussen
68161a78b0 Remove API Definition caching and replace with Netbox version check 2021-07-22 11:52:57 -04:00
Ben Claussen
17c4d9d779 Add Get-NetboxVersion function 2021-07-22 11:52:08 -04:00
Ben Claussen
ea9f6c41bc Trim whitespaces 2021-07-22 11:39:39 -04:00
Ben Claussen
22607fde48 Add TimeoutSeconds parameter and logic to Connect-NetboxAPI
- Updated `InvokeNetboxRequest` to use `NetboxConfig.Timeout`
- Updated `Get-NetboxAPIDefinition` to use `NetboxConfig.Timeout`
2021-07-22 11:06:13 -04:00
Ben Claussen
802ab317f6 Merge branch 'dev' of github.com:benclaussen/NetboxPS into dev 2021-07-22 10:49:39 -04:00
Ben Claussen
218114d8fe Add Get/Set timeout functions 2021-07-22 10:49:19 -04:00
Ben Claussen
c48bfe78ad Add Get/Set timeout functions 2021-07-22 10:48:41 -04:00
Ben Claussen
06d758d7b3 Correct brace formatting 2021-07-22 10:28:22 -04:00
Ben Claussen
989c5eaac2 Correct typo 2021-07-22 10:27:58 -04:00
Ben Claussen
6122fd2301 Update psproj 2021-07-22 10:22:19 -04:00
Ben Claussen
1f66348205
Merge pull request #12 from alagoutte/enhance-connect
Enhance Connection (Support -SkipCertificateCheck, Cipher options)
Indentation fixes

Fixes #8
2021-07-22 10:16:00 -04:00
Alexis La Goutte
fcbb25c088
PSSA: Add Github Actions for launch PSSA (PowerShell Script Analyzer) when launch PR (#11)
Add also vscode/PSScriptAnalyzerSettings.psd1 for Settings for PSSA (can be reuse also for vscode...)
2021-07-22 09:23:15 -04:00
Alexis La Goutte
4800cc6564 Connect: Add SkipCertificateCheck parameter (for PS5 and Core)
Also enable TLS 1.1 and 1.2 for PS5
2021-07-21 23:08:11 +02:00
Alexis La Goutte
1a2484db2c InvokeNetboxRequest: Add to Splat NetboxInvokeParams 2021-07-21 23:06:17 +02:00
Alexis La Goutte
254a2798ac Add Get/Set netboxInvokeParms for Get and Set Invoke Params (array)
Like -SkipCertificate, Timeout...
2021-07-21 23:06:17 +02:00
Alexis La Goutte
c8233ab572 Add Set-NetboxUnstrustedSSL for disable SSL chain test (for PS 5.0
From PowerAruba/FortiPwoer Module :)
2021-07-21 23:06:17 +02:00
Alexis La Goutte
c8c6d48ee4 Add Set-netboxCipherSSL for enable TLS1.1 and TLS1.2 (for PS 5.0)
From PowerAruba/FortiPower Module :)
2021-07-21 23:06:17 +02:00
Alexis La Goutte
2bf4ed6f6f InvokeNetboxRequest(Helpers): Fix indent (using Visual Code Formatter) 2021-07-21 23:06:17 +02:00
Alexis La Goutte
4ad0562466 Support(Setup): Fix indent (using Visual Code Formatter) 2021-07-21 23:06:17 +02:00
Alexis La Goutte
5b1ee45769 Setup(Functions): Fix indent (using Visual Code Formatter) 2021-07-21 23:06:17 +02:00
Alexis La Goutte
b164ffe0b4 Connect(Setup): Fix indent (using Visual code Formatter) 2021-07-21 23:06:17 +02:00
Ben Claussen
1f89363cbd
v1.3.3
v1.3.3
2021-03-31 10:37:34 -04:00